| 123456789101112131415161718192021222324 |
- $(function () {
- 'use strict';
- var $image = $(window.createCropperImage());
- $image.cropper({
- minCropBoxHeight: 150,
- built: function () {
- QUnit.test('options.minCropBoxHeight', function (assert) {
- var data = $image.cropper('setCropBoxData', {
- height: 100
- }).cropper('getCropBoxData');
- assert.ok(Math.round(data.height) === 150);
- });
- }
- });
- });
|