From cc062f0e76a207310aba1b1ca514fbcb98b2f807 Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Thu, 24 Sep 2015 10:25:52 +0200 Subject: [PATCH] Sync up with Parsoid parserTests. This now aligns with Parsoid commit 6619409e60a3208144836970773f191e7a6d147f Change-Id: Iea6199d2d6a314f118febdc2308be1723a9970d2 --- tests/parser/parserTests.txt | 96 ++++++++++++++++++++++++++++++++++-- 1 file changed, 93 insertions(+), 3 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 4c6c9a5b31..7719a28209 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -10354,12 +10354,52 @@ BUG 553: link with two variables in a piped link {| |[[{{{1}}}|{{{2}}}]] |} -!! html +!! html/php
[[{{{1}}}|{{{2}}}]]
+!! html/parsoid + + +!! end + +# See: T2553 +!! test +Abort table cell attribute parsing on wikilink +!! wikitext +{| +| testing [[one|two]] | three || four +| testing one two | three || four +|} +!! html/php +
[[{{{1}}}|{{{2}}}]]
+ + + + +
testing two | three four + three four +
+ +!! html/parsoid + + + +
testing two | three four three four
+!! end + +!! test +Don't abort table cell attribute parsing if wikilink is found in template arg +!! wikitext +{| +| Test {{#tag:ref|One two "[[three]]" four}} +|} +!! html/parsoid + + +
Test One two "three" four
!! end !! test @@ -11819,6 +11859,17 @@ Templates: Ugly templates: 6. Template encapsulation test: Cyclical nesting of t !! end +!! test +Templates: Parameters substituted at the top-level +!! wikitext +{{{foo|''who'' {{echo|me}}? '''never!'''}}} +!! html/php +

who me? never! +

+!! html/parsoid +

who me? never!

+!! end + !!test Parser Functions: 1. Simple example !! wikitext @@ -17974,11 +18025,15 @@ Special:Search page linking. {{!}} is a magic word !! wikitext {{!}} is a magic word there and {{!}} is still a magic word here +| is not a magic word here but {{!}} is still a magic word here !! html/php

| is a magic word there and | is still a magic word here +| is not a magic word here but | is still a magic word here

!! html/parsoid -

| is a magic word there and | is still a magic word here

+

| is a magic word there and | is still a magic word here +| is not a magic word here but | is still a magic word here

+ !! end !! test @@ -23745,11 +23800,15 @@ RT-ed inter-element separators should be valid separators {| |- [[foo]] |} -!! html +!! html/php
+!! html/parsoid + + +
!!end # Parsoid-only since PHP parser relies on Tidy for correct output @@ -26060,6 +26119,37 @@ parsoid={ !! end +## T111151 Remove font elements without attributes +!! test +5a. font tags without attributes should be dropped in scrubWikitext mode +!! options +parsoid={ + "modes": ["html2wt"], + "scrubWikitext": true +} +!! html +foo +bar +boo +!! wikitext +foo +bar +boo +!! end + +!! test +5b. font tags should not be dropped without scrubWikitext being enabled +!! options +parsoid={ + "modes": ["html2wt"], + "scrubWikitext": false +} +!! html +foo +!! wikitext +foo +!! end + !! test Escape nowiki DOM elements !! options -- 2.20.1