From: C. Scott Ananian Date: Thu, 25 Apr 2013 15:55:59 +0000 (-0400) Subject: Add parserTests for tilde and equals signs in links. X-Git-Tag: 1.31.0-rc.0~19878 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=40ba466c69e81488f1165df95f7c1b8f66a55c15;p=lhc%2Fweb%2Fwiklou.git Add parserTests for tilde and equals signs in links. The Parsoid team stumbled over bugs here; adding to parserTests to prevent future regressions. Change-Id: Iad599aef9e3a6e62bb8a447bf955eb98230e81cf --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index b34c9571c6..bf251821c3 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -3969,6 +3969,33 @@ Link containing "<#" and ">#" as a hex sequences

!! end +!! test +Link containing an equals sign +!! input +[[Special:BookSources/isbn=4-00-026157-6]] +!! result +

Special:BookSources/isbn=4-00-026157-6 +

+!! end + +!! article +Foo~bar +!! text +Just a test of an article title containing a tilde. +!! endarticle + +# note that links containing signatures, like [[Foo~~~~]], are +# massaged by the pre-save transform (PST) and so the tildes are never +# seen by the parser. +!! test +Link containing a tilde +!! input +[[Foo~bar]] +!! result +

Foo~bar +

+!! end + !! test Link containing double-single-quotes '' (bug 4598) !! input