mediawiki-extensions-Multim.../tests/qunit/mmv/mmv.multilightbox.test.js
Gergő Tisza 109bbe6ac1 Namespacing MMV properly
Everything is under mw.mmv now.
(Also, I cut down on the number of direct global instance references a bit.)

Change-Id: I88bb3b62b82ce54126dd069b0aab4412d9404719
2014-02-25 13:16:22 +01:00

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 ) );