mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-17 06:20:24 +00:00
* 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
17 lines
796 B
JavaScript
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();
|
|
});
|
|
})();
|