fabric.js/test/unit/header.js
Blob 3b314d11cc Add strokeDashOffset and svg corresponding attribute (#5398)
* Add strokeDashOffset and svg corresponding attribute
2018-11-23 00:56:00 +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, 18, '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();
});
})();