fabric.js/test/unit/header.js
Andrea Bogazzi 053e419dbb
Refinements to strokeUniform property (#5527)
* new Object property strokeUniform allows the stroke width to always stay the same width as object scales

* fix for height

* Update src/shapes/object.class.js

Co-Authored-By: stefanhayden <alt255@gmail.com>

* trying the other function

* different transformed function

* added a visual test

* fixed title

* test svg

* import value from svg

* add svg import test

* more tests
2019-02-17 23:08:39 +01:00

17 lines
796 B
JavaScript

(function() {
QUnit.module('fabric header.js');
QUnit.test('default values', function(assert) {
assert.ok(typeof fabric.document !== 'undefined', 'document is set');
assert.ok(typeof fabric.window !== 'undefined', 'window is set');
assert.ok(typeof fabric.isTouchSupported !== 'undefined', 'isTouchSupported is set');
assert.ok(typeof fabric.isLikelyNode !== 'undefined', 'isLikelyNode is set');
assert.equal(fabric.SHARED_ATTRIBUTES.length, 19, 'SHARED_ATTRIBUTES is set');
});
QUnit.test('initFilterBackend', function(assert) {
assert.ok(typeof fabric.initFilterBackend === 'function', 'initFilterBackend is a function');
assert.ok(typeof fabric.maxTextureSize === 'undefined', 'maxTextureSize is not set yet');
fabric.initFilterBackend();
});
})();