fabric.js/test/unit/header.js
Andrea Bogazzi a7ff2bfb10
Rework SVG code to have clipPath friendly transformations (#5284)
* so far i think i broke everything

* halp super hard

* this is what i wanted

* fixed error

* some fixes

* svg-working

* less code

* fixed shadow for text and groups

* fixed tests

* one file test more

* fixed lint

* works

* ok more tests

* remove a lint issue

* removed unused method
2018-10-07 15:43:37 -04: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, 17, '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();
});
})();