mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-17 12:53:24 +00:00
5e4a544133
This is a big change, but should change nothing except the sizes of some files and where they all are. There are no more ext.multimediaViewer strings ANYWHERE, so let's keep it that way. :) Change-Id: Ic0892f5894700938bfa01f3f9bc8e5ab8276eb72
17 lines
585 B
JavaScript
17 lines
585 B
JavaScript
( function ( /** mw, $ ** Commentted to keep lint happy, uncomment when needed */) {
|
|
QUnit.module( 'multilightbox.image', 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 ) );
|