Merge "Add Parsoid-specific tests for link trail and -prefix escaping"
authorMarkTraceur <mtraceur@member.fsf.org>
Thu, 16 May 2013 17:35:32 +0000 (17:35 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 16 May 2013 17:35:32 +0000 (17:35 +0000)
tests/parser/parserTests.txt

index f90b279..05e935b 100644 (file)
@@ -4333,6 +4333,27 @@ mótmælenda[[söfnuður|söfnuðir]]xxx
 </p>
 !! end
 
+!! test
+Parsoid link trail escaping
+!! options
+parsoid=html2wt,html2html
+!! input
+[[apple]]<nowiki/>s
+!! result
+<p><a rel="mw:WikiLink" href="Apple">apple</a>s</p>
+!! end
+
+!! test
+Parsoid link prefix escaping
+!! options
+language=is
+parsoid=html2wt,html2html
+!! input
+Aðrir mótmælenda<nowiki/>[[söfnuður]]
+!! result
+<p>Aðrir mótmælenda<a rel="mw:WikiLink" href="Söfnuður">söfnuður</a></p>
+!! end
+
 !! test
 Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
 !! input