crop.js 450 B

12345678910111213141516171819202122
  1. $(function () {
  2. 'use strict';
  3. var $image = $(window.createCropperImage());
  4. $image.cropper({
  5. crop: function (data) {
  6. QUnit.test('options.crop', function (assert) {
  7. assert.ok($.isPlainObject(data));
  8. assert.ok(typeof data.x === 'number');
  9. assert.ok(typeof data.y === 'number');
  10. assert.ok(typeof data.width === 'number');
  11. assert.ok(typeof data.height === 'number');
  12. });
  13. }
  14. });
  15. });