Avoid errors in Special:JavaScriptTest on non 'en' content languages

Change-Id: I5a2e265875d2a01314205796a5c652f9a4dda57b
This commit is contained in:
Fomafix 2023-04-25 11:22:38 +00:00 committed by Jon Robson
parent 412765d8b5
commit b3ba9676ec

View file

@ -318,7 +318,11 @@
$link.trigger( { type: 'click', which: 1 } ); $link.trigger( { type: 'click', which: 1 } );
clock.tick( 10 ); clock.tick( 10 );
assert.true( bootstrap.setupOverlay.called, 'Overlay was set up' ); 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(); clock.restore();
} ); } );