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