small formatting fixes
This commit is contained in:
@@ -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,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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user