formatting
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
QUnit.module('ImageEditor');
|
||||
(function() {
|
||||
|
||||
QUnit.test('should load image', function( assert ) {
|
||||
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(), 'image loaded');
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
QUnit.test('should crop image', function( assert ) {
|
||||
QUnit.test('should crop image', function( assert ) {
|
||||
var done = assert.async();
|
||||
var editor = new ImageEditor('canvas');
|
||||
editor.loadImage('fixtures/dog.jpg', function() {
|
||||
@@ -21,4 +23,6 @@ QUnit.test('should crop image', function( assert ) {
|
||||
assert.equal(data.y, 0.12482117310443483, 'sets crop y');
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user