From 40ba466c69e81488f1165df95f7c1b8f66a55c15 Mon Sep 17 00:00:00 2001
From: "C. Scott Ananian"
Date: Thu, 25 Apr 2013 11:55:59 -0400
Subject: [PATCH] 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
---
tests/parser/parserTests.txt | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
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
--
2.20.1