X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fmediawiki%2Fmediawiki.util.test.js;h=17305759147bb85709ef59c9421af5fcc9ac7d69;hp=2efe9cd7f448b166027180b01f2a5acf8f8116bd;hb=1a40e0cc86b6ee0706606ded3ea243dfde4a414c;hpb=6c9a2923fe1ee3a65cb027be5e781772f2b12fbd diff --git a/tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js b/tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js index 2efe9cd7f4..1730575914 100644 --- a/tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js +++ b/tests/qunit/suites/resources/mediawiki/mediawiki.util.test.js @@ -156,7 +156,7 @@ // Test cases are kept in sync with SanitizerTest.php var text = 'foo тест_#%!\'()[]:<>', legacyEncoded = 'foo_.D1.82.D0.B5.D1.81.D1.82_.23.25.21.27.28.29.5B.5D:.3C.3E', - html5Escaped = 'foo_%D1%82%D0%B5%D1%81%D1%82_%23%25!\'()%5B%5D:%3C%3E', + html5Encoded = 'foo_тест_#%!\'()[]:<>', html5Experimental = 'foo_тест_!_()[]:<>', // Settings: this is wgFragmentMode legacy = [ 'legacy' ], @@ -172,13 +172,13 @@ // Transition to a new world: legacy links with HTML5 fallback [ legacyNew, text, legacyEncoded ], // New world: HTML5 links, legacy fallbacks - [ newLegacy, text, html5Escaped ], + [ newLegacy, text, html5Encoded ], // Distant future: no legacy fallbacks - [ allNew, text, html5Escaped ], + [ allNew, text, html5Encoded ], // Someone flipped wgExperimentalHtmlIds on [ experimentalLegacy, text, html5Experimental ], // Migration from wgExperimentalHtmlIds to modern HTML5 - [ newExperimental, text, html5Escaped ] + [ newExperimental, text, html5Encoded ] ], function ( index, testCase ) { mw.config.set( 'wgFragmentMode', testCase[ 0 ] ); @@ -246,7 +246,7 @@ assert.equal( href, '/wiki/#Fragment', 'empty title with fragment' ); href = util.getUrl( '#Fragment', { action: 'edit' } ); - assert.equal( href, '/w/index.php?action=edit#Fragment', 'epmty title with query string and fragment' ); + assert.equal( href, '/w/index.php?action=edit#Fragment', 'empty title with query string and fragment' ); href = util.getUrl( 'Foo:Sandbox \xC4#Fragment \xC4', { action: 'edit' } ); assert.equal( href, '/w/index.php?title=Foo:Sandbox_%C3%84&action=edit#Fragment_.C3.84', 'title with query string, fragment, and special characters' );