From bfe2ee4bc237fbe2105f66094ad8ef231dd36b82 Mon Sep 17 00:00:00 2001
From: "C. Scott Ananian"
Date: Tue, 30 Apr 2013 14:53:13 -0400
Subject: [PATCH] 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
---
tests/parser/parserTests.txt | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
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
--
2.20.1