mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 08:13:38 +00:00
Avoid errors in Special:JavaScriptTest on non 'en' content languages
Change-Id: I5a2e265875d2a01314205796a5c652f9a4dda57b
This commit is contained in:
parent
412765d8b5
commit
b3ba9676ec
|
@ -318,7 +318,11 @@
|
|||
$link.trigger( { type: 'click', which: 1 } );
|
||||
clock.tick( 10 );
|
||||
assert.true( bootstrap.setupOverlay.called, 'Overlay was set up' );
|
||||
assert.strictEqual( viewer.loadImageByTitle.firstCall.args[ 0 ].getPrefixedDb(), 'File:Foo.jpg', 'Titles are identical' );
|
||||
assert.strictEqual(
|
||||
viewer.loadImageByTitle.firstCall.args[ 0 ].getPrefixedDb(),
|
||||
new mw.Title( 'File:foo.jpg' ).getPrefixedDb(),
|
||||
'Titles are identical'
|
||||
);
|
||||
|
||||
clock.restore();
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue