mediawiki-extensions-Multim.../tests/qunit/multilightbox.test.js
Aaron Arcos 83aa9c6a6b Smoke test for MultiLightbox class.
Change-Id: Iab8a80d842d4252a68bca2a4de92acccd835c978
2013-12-09 18:18:42 -08:00

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