X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fmediawiki%2Fmediawiki.Title.test.js;h=e8db4e1d225522199f0b0c5f0ca932b6f373b962;hb=b5b6b477790a05823a81d5fbbf5e48af420cfbc7;hp=1bc4c06d82cbe28ce01c4bda92e27ca92013af13;hpb=1e584948edcd21fc6d28da86d876650dd472743e;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/qunit/suites/resources/mediawiki/mediawiki.Title.test.js b/tests/qunit/suites/resources/mediawiki/mediawiki.Title.test.js index 1bc4c06d82..e8db4e1d22 100644 --- a/tests/qunit/suites/resources/mediawiki/mediawiki.Title.test.js +++ b/tests/qunit/suites/resources/mediawiki/mediawiki.Title.test.js @@ -245,8 +245,8 @@ title = new mw.Title( 'Foo \u00A0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000 bar' ); assert.equal( title.getMain(), 'Foo_bar', 'Merge multiple types of whitespace/underscores into a single underscore' ); - title = new mw.Title( 'Foo\u200E\u200F\u202A\u202B\u202C\u202D\u202Ebar' ); - assert.equal( title.getMain(), 'Foobar', 'Strip Unicode bidi override characters' ); + title = new mw.Title( 'Foo\u00AD\u061C\u200E\u200F\u202A\u202B\u202C\u202D\u202E\u2066\u2067\u2068\u2069bar' ); + assert.equal( title.getMain(), 'Foobar', 'Strip soft hyphen and Unicode directional formatting characters' ); // Regression test: Previously it would only detect an extension if there is no space after it title = new mw.Title( 'Example.js ' ); @@ -483,7 +483,7 @@ title = mw.Title.newFromImg( { src: thisCase.url } ); if ( thisCase.nameText !== undefined ) { - prefix = '[' + thisCase.typeOfUrl + ' URL' + '] '; + prefix = '[' + thisCase.typeOfUrl + ' URL] '; assert.notStrictEqual( title, null, prefix + 'Parses successfully' ); assert.equal( title.getNameText(), thisCase.nameText, prefix + 'Filename matches original' ); @@ -668,7 +668,7 @@ }, { fileName: 'BI\u200EDI.jpg', - typeOfName: 'Name containing BIDI overrides', + typeOfName: 'Name containing Unicode directional formatting characters', nameText: 'BIDI', prefixedText: 'File:BIDI.jpg' },