mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-01 03:06:17 +00:00
109bbe6ac1
Everything is under mw.mmv now. (Also, I cut down on the number of direct global instance references a bit.) Change-Id: I88bb3b62b82ce54126dd069b0aab4412d9404719
13 lines
451 B
JavaScript
13 lines
451 B
JavaScript
( function ( mw ) {
|
|
QUnit.module( 'mmv.multilightbox', QUnit.newMwEnvironment() );
|
|
|
|
QUnit.test( 'Smoke test', 2, function ( assert ) {
|
|
function DummyClass() {}
|
|
var multiLightbox = new mw.mmv.MultiLightbox( 0, DummyClass );
|
|
|
|
assert.strictEqual( multiLightbox.currentIndex, 0, 'currentIndex initialized correctly.' );
|
|
assert.ok( multiLightbox.iface instanceof DummyClass, 'interface initialized correctly.' );
|
|
} );
|
|
|
|
}( mediaWiki, jQuery ) );
|