blob: 70a1a763acb276e0f49091e5289fe799076c4d1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
QUnit.test('methods#zoom', function (assert) {
var done = assert.async();
var util = window.Util;
var image = util.createImage();
assert.expect(2);
return new Cropper(image, {
ready: function () {
var cropper = this.cropper;
var canvasData = cropper.getCanvasData();
var changedCanvasData = cropper.zoom(0.1).getCanvasData();
assert.ok(changedCanvasData.width > canvasData.width);
assert.ok(changedCanvasData.height > canvasData.height);
done();
}
});
});
|