mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-03 20:26:25 +00:00
de56d4a6de
- Instantiate LightboxImage object in mmv.bootstrap - Add LightboxImage.position field: relative position of this image to others with same file - Add optional routing suffix /:position Bug: T64039 Change-Id: Ic7c5889064492fc88dae33271b635c5327b091e1
10 lines
302 B
JavaScript
10 lines
302 B
JavaScript
const { LightboxImage } = require( 'mmv.bootstrap' );
|
|
|
|
QUnit.module( 'mmv.lightboximage', QUnit.newMwEnvironment() );
|
|
|
|
QUnit.test( 'Sense test', function ( assert ) {
|
|
const lightboxImage = new LightboxImage( 'foo.png' );
|
|
|
|
assert.true( lightboxImage instanceof LightboxImage, 'Object created' );
|
|
} );
|