(bug 43661) Added test for special link trail case
authorMark Holmquist <mtraceur@member.fsf.org>
Mon, 7 Jan 2013 23:43:37 +0000 (15:43 -0800)
committerMark Holmquist <mtraceur@member.fsf.org>
Tue, 8 Jan 2013 19:33:23 +0000 (11:33 -0800)
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

tests/parser/parserTests.txt

index 8aac86d..2dac99f 100644 (file)
@@ -3232,6 +3232,28 @@ Link with suffix
 </p>
 !! 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
+<p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articles with spaces</a>
+</p><p><a href="/wiki/Prefixed_article" title="Prefixed article">prefixed articlesaoeu</a>
+</p><p><a href="/wiki/Main_Page" title="Main Page">Main Page test</a>
+</p>
+!! end
+
+
 !! test
 Link with HTML entity in suffix / tail
 !! input