mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 16:23:49 +00:00
83aa9c6a6b
Change-Id: Iab8a80d842d4252a68bca2a4de92acccd835c978
12 lines
456 B
JavaScript
12 lines
456 B
JavaScript
( function () {
|
|
QUnit.module( 'ext.multimediaViewer.multiLightbox', QUnit.newMwEnvironment() );
|
|
|
|
QUnit.test( 'Smoke test', 1, function ( assert ) {
|
|
var lightboxImage = new window.LightboxImage( 'http://en.wikipedia.org/w/skins/vector/images/search-ltr.png' ),
|
|
multiLightbox = new window.MultiLightbox( [lightboxImage] );
|
|
|
|
assert.strictEqual( multiLightbox.currentIndex, 0, 'currentIndex initialized correctly.' );
|
|
} );
|
|
|
|
}( mediaWiki, jQuery ) );
|