mirror of
https://github.com/fengyuanchen/viewerjs.git
synced 2026-01-18 15:13:13 +00:00
18 lines
336 B
JavaScript
18 lines
336 B
JavaScript
QUnit.test('options#inline', 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 () {
|
|
assert.notOk(util.hasClass(this.viewer.viewer, 'viewer-fixed'));
|
|
|
|
done();
|
|
}
|
|
});
|
|
});
|