From d3b22e8d8fb2ae81679f5a4b818f9d21279153ad Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 15 May 2013 14:01:48 -0700 Subject: [PATCH] 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 --- tests/parser/parserTests.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 -- 2.20.1