mirror of
https://github.com/fengyuanchen/viewerjs.git
synced 2026-01-18 15:13:13 +00:00
18 lines
304 B
JavaScript
18 lines
304 B
JavaScript
QUnit.test('options#viewed', function (assert) {
|
|
var done = assert.async();
|
|
var util = window.Util;
|
|
var image = util.createImage();
|
|
|
|
assert.expect(1);
|
|
|
|
return new Viewer(image, {
|
|
inline: true,
|
|
|
|
viewed: function (e) {
|
|
assert.ok(e.type === 'viewed');
|
|
|
|
done();
|
|
}
|
|
});
|
|
});
|