/home/mip/public_html/template/AdminLTE/plugins/cropper-master/test/events/cropstart.js
$(function () {

  'use strict';

  var $image = $(window.createCropperImage());

  $image.on('cropstart.cropper', function (e) {

    QUnit.test('events#cropstart', function (assert) {
      assert.equal(e.type, 'cropstart');
      assert.equal(e.action, 'crop');
    });

  }).cropper({
    ready: function () {
      var $dragBox = $image.data('cropper').$dragBox;

      // Triggers events manually when ready
      $dragBox.trigger('mousedown').trigger('mouseup');
    },

    cropstart: function (e) {

      QUnit.test('options#cropstart', function (assert) {
        assert.equal(e.type, 'cropstart');
        assert.equal(e.action, 'crop');
      });

    }
  });

});