mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 16:23:49 +00:00
ffc8f4948d
- Moved tests that were meant for LightboxInterface objects. - Fixed space naming issues. Change-Id: Ib83904eab5fa542330ea559d420efa5f1de8c3eb
17 lines
614 B
JavaScript
17 lines
614 B
JavaScript
( function ( /** mw, $ ** Commentted to keep lint happy, uncomment when needed */) {
|
|
QUnit.module( 'ext.multimediaViewer.multilightbox.lightboxImage', QUnit.newMwEnvironment() );
|
|
|
|
QUnit.asyncTest( 'Sanity test, object creation and image loading', 1, function ( assert ) {
|
|
var lightboxImage = new window.LightboxImage( 'http://en.wikipedia.org/w/skins/vector/images/search-ltr.png' );
|
|
|
|
// Function to be called if loading is successful
|
|
function loadCallback() {
|
|
assert.ok( true, 'Image loaded !' );
|
|
QUnit.start();
|
|
}
|
|
|
|
lightboxImage.getImageElement( loadCallback );
|
|
} );
|
|
|
|
}( mediaWiki, jQuery ) );
|