From: C. Scott Ananian
Date: Tue, 30 Apr 2013 18:53:13 +0000 (-0400)
Subject: Add combined link trail / link prefix parserTests case.
X-Git-Tag: 1.31.0-rc.0~19802^2
X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=bfe2ee4bc237fbe2105f66094ad8ef231dd36b82;p=lhc%2Fweb%2Fwiklou.git
Add combined link trail / link prefix parserTests case.
This protects against the bug fixed in https://gerrit.wikimedia.org/r/61512
which failed to process the rest of the paragraph after the first link
trail.
We also add more thorough test cases combining link trails, link prefixes,
and piped links. This targets Parsoid round-tripping wikitext to wikitext
in particular.
Change-Id: I68fb3b2cec09906b19e6f833688a46b811ba9eb4
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index 68e68a11f0..f38d826ec0 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -4264,7 +4264,7 @@ Test.
!! endarticle
!! test
-Internal link with is linkprefix
+Internal link with is link prefix
!! options
language=is
!! input
@@ -4274,6 +4274,31 @@ Aðrir mótmælenda[[söfnuður|söfnuðir]] og
!! end
+!! article
+Mótmælendatrú
+!! text
+Test.
+!! endarticle
+
+!! test
+Internal link with is link trail and link prefix
+!! options
+language=is
+!! input
+[[mótmælendatrú|xxx]]ar
+[[mótmælendatrú]]ar
+mótmælenda[[söfnuður]]
+mótmælenda[[söfnuður|söfnuðir]]
+mótmælenda[[söfnuður|söfnuðir]]xxx
+!! result
+xxxar
+mótmælendatrúar
+mótmælendasöfnuður
+mótmælendasöfnuðir
+mótmælendasöfnuðirxxx
+
+!! end
+
!! test
Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
!! input