From: Mark Holmquist
Date: Mon, 7 Jan 2013 23:43:37 +0000 (-0800)
Subject: (bug 43661) Added test for special link trail case
X-Git-Tag: 1.31.0-rc.0~21088^2
X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=d39c674b42c897525ec25d424f89401810ee54d0;p=lhc%2Fweb%2Fwiklou.git
(bug 43661) Added test for special link trail case
Parsoid is now constructing link trails based on a few rules, one of which
dealt with link prefixes. However, that caused some regressions that weren't
tested until now.
Change-Id: Id205589bb06bc5b290e67d4f4731f0e8e7215dee
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index 8aac86ddf7..2dac99f19f 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -3232,6 +3232,28 @@ Link with suffix
!! end
+!! article
+prefixed article
+!! text
+Some text
+!! endarticle
+
+!! test
+Bug 43661: Piped links with identical prefixes
+!! input
+[[prefixed article|prefixed articles with spaces]]
+
+[[prefixed article|prefixed articlesaoeu]]
+
+[[Main Page|Main Page test]]
+!! result
+prefixed articles with spaces
+
prefixed articlesaoeu
+
Main Page test
+
+!! end
+
+
!! test
Link with HTML entity in suffix / tail
!! input