blob: 0fe548404d2c2aa9b67548de3c898ba0a133ae67 (
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
QUnit.test('options#checkOrientation: true', function (assert) {
var done = assert.async();
var util = window.Util;
var image = util.createImage({
src: '../docs/images/picture-3.jpg'
});
assert.expect(1);
return new Cropper(image, {
// checkOrientation: true,
ready: function () {
var cropper = this.cropper;
assert.notStrictEqual(cropper.getData().rotate, 0);
done();
}
});
});
QUnit.test('options#checkOrientation: false', function (assert) {
var done = assert.async();
var util = window.Util;
var image = util.createImage({
src: '../docs/images/picture-3.jpg'
});
assert.expect(1);
return new Cropper(image, {
checkOrientation: false,
ready: function () {
var cropper = this.cropper;
assert.strictEqual(cropper.getData().rotate, 0);
done();
}
});
});
|