blob: c9745a9b19a27c4226f7393f9e4bf739898b3e82 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
QUnit.test('options#minCanvasHeight', function (assert) {
var done = assert.async();
var util = window.Util;
var image = util.createImage();
var minCanvasHeight = 270;
assert.expect(1);
return new Cropper(image, {
minCanvasHeight: minCanvasHeight,
ready: function () {
var cropper = this.cropper;
var canvasData = cropper.setCanvasData({
height: 180
}).getCanvasData();
assert.strictEqual(Math.round(canvasData.height), minCanvasHeight);
done();
}
});
});
|