| 123456789101112131415161718192021222324 |
- $(function () {
- 'use strict';
- var $image = $(window.createCropperImage());
- $image.cropper({
- zoomable: false,
- built: function () {
- var cropper = $image.data('cropper'),
- _ratio = cropper.image.ratio;
- QUnit.test('options.zoomable', function (assert) {
- $image.cropper('zoom', 1);
- assert.equal(cropper.image.ratio, _ratio);
- });
- }
- });
- });
|