Cscott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/60874


Change subject: Add parserTests for tilde and equals signs in links.
......................................................................

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
---
M tests/parser/parserTests.txt
1 file changed, 27 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/74/60874/1

diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index b34c957..bf25182 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -3970,6 +3970,33 @@
 !! end
 
 !! test
+Link containing an equals sign
+!! input
+[[Special:BookSources/isbn=4-00-026157-6]]
+!! result
+<p><a href="/wiki/Special:BookSources/isbn%3D4-00-026157-6" 
title="Special:BookSources/isbn=4-00-026157-6">Special:BookSources/isbn=4-00-026157-6</a>
+</p>
+!! 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
+<p><a href="/wiki/Foo%7Ebar" title="Foo~bar">Foo~bar</a>
+</p>
+!! end
+
+!! test
 Link containing double-single-quotes '' (bug 4598)
 !! input
 [[Lista d''e paise d''o munno]]

-- 
To view, visit https://gerrit.wikimedia.org/r/60874
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iad599aef9e3a6e62bb8a447bf955eb98230e81cf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to