fabric.js/test/unit/header.js

18 lines
796 B
JavaScript
Raw Permalink Normal View History

(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();
});
})();