aboutsummaryrefslogtreecommitdiffstats
path: root/library/cropperjs/test/events/ready.js
blob: fbec2ff0c8382a48c662f941097f781a0cf0fb16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
QUnit.test('events#ready', function (assert) {
  var done = assert.async();
  var util = window.Util;
  var image = util.createImage();

  assert.expect(1);

  image.addEventListener('ready', function () {
    assert.ok(true);

    done();
  });

  return new Cropper(image);
});