diff options
Diffstat (limited to 'library/cropperjs/test/methods/zoomTo.js')
-rw-r--r-- | library/cropperjs/test/methods/zoomTo.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/library/cropperjs/test/methods/zoomTo.js b/library/cropperjs/test/methods/zoomTo.js deleted file mode 100644 index dd9e81760..000000000 --- a/library/cropperjs/test/methods/zoomTo.js +++ /dev/null @@ -1,21 +0,0 @@ -QUnit.test('methods#zoomTo', function (assert) { - var done = assert.async(); - var util = window.Util; - var image = util.createImage(); - - assert.expect(3); - - return new Cropper(image, { - ready: function () { - var cropper = this.cropper; - var imageData = cropper.zoomTo(1).getImageData(); - var canvasData = cropper.getCanvasData(); - - assert.strictEqual(imageData.width, imageData.naturalWidth); - assert.strictEqual(canvasData.width, canvasData.naturalWidth); - assert.strictEqual(canvasData.naturalWidth, imageData.naturalWidth); - - done(); - } - }); -}); |