mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-12 09:27:36 +00:00
53da285b07
* merges parent classes into child classes * moves some files and tests to have a consistent directory structure Change-Id: I360cc0805d8a561f5105fb063747457f67e1fccd Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/177
13 lines
447 B
JavaScript
13 lines
447 B
JavaScript
( function ( mw ) {
|
|
QUnit.module( 'mmv.multilightbox', QUnit.newMwEnvironment() );
|
|
|
|
QUnit.test( 'Smoke test', 2, function ( assert ) {
|
|
function DummyClass() {}
|
|
var multiLightbox = new mw.MultiLightbox( 0, DummyClass );
|
|
|
|
assert.strictEqual( multiLightbox.currentIndex, 0, 'currentIndex initialized correctly.' );
|
|
assert.ok( multiLightbox.iface instanceof DummyClass, 'interface initialized correctly.' );
|
|
} );
|
|
|
|
}( mediaWiki, jQuery ) );
|