$(function () {

  'use strict';

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

  $image.cropper({
    minCanvasHeight: minCanvasHeight,

    built: function () {

      QUnit.test('options#minCanvasHeight', function (assert) {
        var data = $image.cropper('setCanvasData', {
              height: 45
            }).cropper('getCanvasData');

        assert.ok(Math.round(data.height) === minCanvasHeight);
      });

    }
  });

});
