10 lines
268 B
JavaScript
10 lines
268 B
JavaScript
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();
|
|
});
|
|
}); |