mediawiki-extensions-Multim.../tests/qunit/mmv/mmv.multilightbox.test.js
Gergő Tisza 53da285b07 Merge MultiLightbox into MultimediaViewer
* 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
2014-02-25 02:00:13 +00:00

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