/home/mip/mip/public/template/AdminLTE/plugins/cropper-master/test/options/data.js
$(function () {

  'use strict';

  var $image = $(window.createCropperImage());
  var _data = {
        x: 360,
        y: 450,
        width: 640,
        height: 360,
        rotate: 45
      };

  $image.cropper({
    data: _data,

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

      QUnit.test('options#data', function (assert) {
        assert.equal(Math.round(data.x), _data.x);
        assert.equal(Math.round(data.y), _data.y);
        assert.equal(Math.round(data.width), _data.width);
        assert.equal(Math.round(data.height), _data.height);
        assert.equal(Math.round(data.rotate), _data.rotate);
      });

    }
  });

});