mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 21:04:11 +00:00
a5cddef17a
Also removes the index inside the location hash Change-Id: I9429ff0101ab891f2c4c6aa2d989fbef0813252d Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/136
15 lines
598 B
JavaScript
15 lines
598 B
JavaScript
( function () {
|
|
QUnit.module( 'multilightbox', QUnit.newMwEnvironment() );
|
|
|
|
QUnit.test( 'Smoke test', 3, function ( assert ) {
|
|
function DummyClass() {}
|
|
var multiLightbox = new window.MultiLightbox(),
|
|
multilightbox2 = new window.MultiLightbox( 0, DummyClass );
|
|
|
|
assert.strictEqual( multiLightbox.currentIndex, 0, 'currentIndex initialized correctly.' );
|
|
assert.ok( multiLightbox.iface instanceof window.LightboxInterface, 'Using default LightboxInterface class' );
|
|
assert.ok( multilightbox2.iface instanceof DummyClass, 'Using injected DummyClass' );
|
|
} );
|
|
|
|
}( mediaWiki, jQuery ) );
|