blob: 844c7953e27aaf1f372a9604911842204bf5e551 (
plain) (
tree)
|
|
QUnit.test('methods#getCropBoxData', function (assert) {
var done = assert.async();
var util = window.Util;
var image = util.createImage();
assert.expect(4);
return new Cropper(image, {
ready: function () {
var cropper = this.cropper;
var cropBoxData = cropper.getCropBoxData();
assert.ok(util.isNumber(cropBoxData.left));
assert.ok(util.isNumber(cropBoxData.top));
assert.ok(util.isNumber(cropBoxData.width));
assert.ok(util.isNumber(cropBoxData.height));
done();
}
});
});
|