add unit testing

This commit is contained in:
Martin
2017-08-05 01:33:35 +02:00
parent bf55ced590
commit 521b10c3ae
9 changed files with 32362 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
QUnit.module('ImageEditor');
QUnit.test('should load image', function( assert ) {
var done = assert.async();
var editor = new ImageEditor('canvas');
editor.loadImage('fixtures/dog.jpg', function() {
assert.ok(editor.canvas.getImage());
done();
});
});