small formatting fixes

This commit is contained in:
Martin
2017-08-06 03:40:22 +02:00
parent 868e9eae6c
commit 74b042a496
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -32,7 +32,6 @@
//add event listeners //add event listeners
width.addEventListener('keyup', cropImage); width.addEventListener('keyup', cropImage);
height.addEventListener('keyup', cropImage); height.addEventListener('keyup', cropImage);
window.addEventListener('resize', resizeEditor); window.addEventListener('resize', resizeEditor);
//load the image //load the image
+2 -2
View File
@@ -2,7 +2,7 @@
QUnit.module('ImageEditor'); QUnit.module('ImageEditor');
QUnit.test('should load image', function(assert) { QUnit.test('load image', function(assert) {
var done = assert.async(); var done = assert.async();
var editor = new ImageEditor('canvas'); var editor = new ImageEditor('canvas');
editor.loadImage('fixtures/dog.jpg', function() { editor.loadImage('fixtures/dog.jpg', function() {
@@ -11,7 +11,7 @@
}); });
}); });
QUnit.test('should crop image', function(assert) { QUnit.test('crop image', function(assert) {
var done = assert.async(); var done = assert.async();
var editor = new ImageEditor('canvas'); var editor = new ImageEditor('canvas');
editor.loadImage('fixtures/dog.jpg', function() { editor.loadImage('fixtures/dog.jpg', function() {