aboutsummaryrefslogblamecommitdiffstats
path: root/library/cropperjs/test/options/minContainerHeight.js
blob: 85d7a70ef9466905570ec3db664cd5a6dbd682ed (plain) (tree)




















                                                                               
QUnit.test('options#minContainerHeight', function (assert) {
  var done = assert.async();
  var util = window.Util;
  var image = util.createImage();
  var minContainerHeight = 361;

  assert.expect(1);

  return new Cropper(image, {
    minContainerHeight: minContainerHeight,

    ready: function () {
      var cropper = this.cropper;
      var containerData = cropper.getContainerData();

      assert.strictEqual(Math.round(containerData.height), minContainerHeight);

      done();
    }
  });
});