built.js 447 B

123456789101112131415161718192021222324
  1. $(function () {
  2. 'use strict';
  3. var $image = $(window.createCropperImage());
  4. $image.one('built.cropper', function (e) {
  5. QUnit.test('methods.built', function (assert) {
  6. assert.ok(e.type === 'built' && e.namespace === 'cropper');
  7. });
  8. }).cropper({
  9. built: function (e) {
  10. QUnit.test('options.built', function (assert) {
  11. assert.ok(e.type === 'built' && e.namespace === 'cropper');
  12. });
  13. }
  14. });
  15. });