From: Gabriel Wicke
Date: Wed, 15 May 2013 21:01:48 +0000 (-0700)
Subject: Add Parsoid-specific tests for link trail and -prefix escaping
X-Git-Tag: 1.31.0-rc.0~19656^2
X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=d3b22e8d8fb2ae81679f5a4b818f9d21279153ad;p=lhc%2Fweb%2Fwiklou.git
Add Parsoid-specific tests for link trail and -prefix escaping
This is intended to test the escaping code developed in I627dd609d4eb0. The
link prefix code does not pass yet, possibly because of some bug in
language-specific tests or our local islandic language config.
Change-Id: I53289110e3f9e4f840b2f45594e819c9655a17b4
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index f90b27980d..05e935bdde 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -4333,6 +4333,27 @@ mótmælenda[[söfnuður|söfnuðir]]xxx
!! end
+!! test
+Parsoid link trail escaping
+!! options
+parsoid=html2wt,html2html
+!! input
+[[apple]]s
+!! result
+apples
+!! end
+
+!! test
+Parsoid link prefix escaping
+!! options
+language=is
+parsoid=html2wt,html2html
+!! input
+Aðrir mótmælenda[[söfnuður]]
+!! result
+Aðrir mótmælendasöfnuður
+!! end
+
!! test
Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved
!! input