mediawiki-extensions-Multim.../tests/qunit/lightboximage.test.js
Mark Holmquist 5e4a544133 Moving things around for module renames
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
2014-01-24 09:21:16 -08:00

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