From: Subramanya Sastry Date: Mon, 12 Sep 2016 14:06:04 +0000 (-0500) Subject: Sync up with Parsoid parserTests. X-Git-Tag: 1.31.0-rc.0~5645^2 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=d9c9199cca70f7deaf62111e7b6bd23f5b34634f;p=lhc%2Fweb%2Fwiklou.git Sync up with Parsoid parserTests. This now aligns with Parsoid commit 94316242479f272b51db431a0f8fb6d77bd8f639 Change-Id: I411e3b733f4f1e5da5fa2500354575af77e09c88 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index c1c421b890..e1a54fbbb1 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -3055,6 +3055,28 @@ a | c !!end +!! test +2g. Indented table markup mixed with indented pre content (proposed in bug 6200) +!! wikitext + + + + +
+ Text that should be rendered preformatted +
+!! html + + + + +
+
Text that should be rendered preformatted
+
+
+ +!! end + !!test 3a. Indent-Pre and block tags (single-line html) !! wikitext @@ -6392,26 +6414,55 @@ parsoid=wt2html,html2html ho">ha !! end +## We don't support roundtripping of these attributes in Parsoid. +## Selective serialization takes care of preventing dirty diffs. +## But, on edits, we dirty-diff the invalid attribute text. !! test -Indented table markup mixed with indented pre content (proposed in bug 6200) +Invalid text in table attributes should be discarded +!! options +parsoid=wt2html !! wikitext - - - - -
- Text that should be rendered preformatted -
-!! html - - - - -
-
Text that should be rendered preformatted
-
-
+{| boo style='border:1px solid black' +| boo style='color:blue' | 1 +|boo style='color:blue'| 2 +|} +!! html/php + + + +
1 + 2 +
+!! html/parsoid + + + + + +
1 2
+!! end + +!! test +Invalid text in table attributes should be preserved by selective serializer +!! options +parsoid={ + "modes": ["selser"], + "changes": [ + ["td:first-child", "text", "abc"], + ["td + td", "text", "xyz"] + ] +} +!! wikitext +{| boo style='border:1px solid black' +| boo style='color:blue' | 1 +|boo style='color:blue'| 2 +|} +!! wikitext/edited +{| boo style='border:1px solid black' +| boo style='color:blue' |abc +|boo style='color:blue'|xyz +|} !! end !! test @@ -8000,6 +8051,20 @@ title=[[User:test]]

/123

!! end +!! test +Ensure that transclusion titles are not url-decoded +!! options +subpage title=[[Test]] +parsoid=wt2html +!! wikitext +{{Bar%C3%A9}} {{/Bar%C3%A9}} +!! html/php +

{{Bar%C3%A9}} {{/Bar%C3%A9}} +

+!! html/parsoid +

{{Bar%C3%A9}} {{/Bar%C3%A9}}

+!! end + !! test Purely hash wikilink !! options @@ -19388,9 +19453,11 @@ subpage title=[[Subpage test/L1/L2/L3]] parsoid=wt2html !! wikitext {{../../../../More than parent}} -!! html +!! html/php

{{../../../../More than parent}}

+!! html/parsoid +

{{../../../../More than parent}}

!! end !! test @@ -27241,7 +27308,9 @@ Thumbnail output unclosed internal link XSS (T137264) !! wikitext [[#%3Cscript%3Ealert(1)%3C/script%3E| -!! html +!! html/php

[[#<script>alert(1)</script>|

+!! html/parsoid +

[[#%3Cscript%3Ealert(1)%3C/script%3E|

!! end