diff options
Diffstat (limited to 'MLEB/Translate/tests/qunit/ext.translate.parsers.test.js')
-rw-r--r-- | MLEB/Translate/tests/qunit/ext.translate.parsers.test.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MLEB/Translate/tests/qunit/ext.translate.parsers.test.js b/MLEB/Translate/tests/qunit/ext.translate.parsers.test.js index 004d7dff..cc86ed1f 100644 --- a/MLEB/Translate/tests/qunit/ext.translate.parsers.test.js +++ b/MLEB/Translate/tests/qunit/ext.translate.parsers.test.js @@ -4,7 +4,7 @@ * @license GPL-2.0-or-later */ -( function ( $, mw ) { +( function () { 'use strict'; QUnit.module( 'ext.translate.parsers', QUnit.newMwEnvironment() ); @@ -13,21 +13,21 @@ mw.config.set( 'wgArticlePath', '/wiki/$1' ); assert.strictEqual( - 'This page is [in English]', mw.translate.formatMessageGently( 'This page is [in English]' ), + 'This page is [in English]', 'Brackets without protocol doesn\'t make a link' ); assert.strictEqual( - 'This page has <a href="https://www.mediawiki.org">a link</a>', mw.translate.formatMessageGently( 'This page has [https://www.mediawiki.org a link]' ), + 'This page has <a href="https://www.mediawiki.org">a link</a>', 'Brackets with https:// protocol creates a link' ); assert.strictEqual( - 'No kun <a href="/wiki/m:MassMessage">m:MassMessage</a> ja plum <a href="/wiki/m:">Meta-Wiki</a>.', mw.translate.formatMessageGently( 'No kun [[m:MassMessage]] ja plum [[m:|Meta-Wiki]].' ), + 'No kun <a href="/wiki/m:MassMessage">m:MassMessage</a> ja plum <a href="/wiki/m:">Meta-Wiki</a>.', 'Link parsing is non-greedy' ); } ); -}( jQuery, mediaWiki ) ); +}() ); |