minContainerWidth.js 450 B

1234567891011121314151617181920212223
  1. $(function () {
  2. 'use strict';
  3. var $image = $(window.createCropperImage()),
  4. minContainerWidth = 641;
  5. $image.cropper({
  6. minContainerWidth: minContainerWidth,
  7. built: function () {
  8. var cropper = $image.data('cropper'),
  9. container = cropper.container;
  10. QUnit.test('options.minContainerWidth', function (assert) {
  11. assert.ok(Math.round(container.width) === minContainerWidth);
  12. });
  13. }
  14. });
  15. });