assert.strictEqual(href,'/w/index.php?title=Foo:Sandbox_%C3%84&action=edit#Fragment_.C3.84','title with query string, fragment, and special characters');
assert.strictEqual(href,'/w/index.php?title=Sandbox&action=edit#.2B.26.3D:.3B.40.24-_..21.2A.2F.5B.5D.3C.3E.27.C2.A7','fragment with various characters');
name:'Princess Alexandra of Denmark (later Queen Alexandra, wife of Edward VII) with her two eldest sons, Prince Albert Victor (Eddy) and George Frederick Ernest Albert (later George V).jpg',
name:'Princess Alexandra of Denmark (later Queen Alexandra, wife of Edward VII) with her two eldest sons, Prince Albert Victor (Eddy) and George Frederick Ernest Albert (later George V).jpg',
assert.strictEqual(typeofresizeUrl,'function','resizeUrl is set');
assert.strictEqual(resizeUrl(500),'/w?title=Special:Redirect/file/Princess_Alexandra_of_Denmark_(later_Queen_Alexandra,_wife_of_Edward_VII)_with_her_two_eldest_sons,_Prince_Albert_Victor_(Eddy)_and_George_Frederick_Ernest_Albert_(later_George_V).jpg&width=500','Resized URL is correct');
});
QUnit.test('escapeRegExp [normal]',(assert)=>{
constnormal='ABCDEFGHIJKLMNOPQRSTUVWXYZ'+
'abcdefghijklmnopqrstuvwxyz'+
'0123456789';
assert.strictEqual(mw.util.escapeRegExp(normal),normal,'Alphanumerals are left alone');
});
QUnit.test.each('escapeRegExp [specials]',[
'\\',
'{',
'}',
'(',
')',
'[',
']',
'|',
'.',
'?',
'*',
'+',
'-',
'^',
'$'
],(assert,str)=>{
assert.propEqual(
str.match(newRegExp(mw.util.escapeRegExp(str))),
[str],
'confirm correct escaping by being able to match itself'