From bef1ba5c712233cee98c564c58382a8aefdcb838 Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Thu, 10 Sep 2015 09:17:01 -0700 Subject: [PATCH] Sync up with Parsoid parserTests. This now aligns with Parsoid commit 45ef2301bfc549c890851de811e5b34f68d5646a Change-Id: I9394b326bc370ea6240dd6504aabc2678e346d2a --- tests/parser/parserTests.txt | 43 +++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index fdd2579588..c8c63f397b 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -6240,7 +6240,7 @@ Table cell attributes: Pipes protected by nowikis should be treated as a plain c | title="foo|" |bar | title="foo|" bar |} -!! html +!! html/php
bar @@ -6250,12 +6250,19 @@ Table cell attributes: Pipes protected by nowikis should be treated as a plain c title="foo|" bar
+!! html/parsoid + + + + +
barbar title="foo|" bar
!! end -# The "|}" to close the table is missing from the input, so parsoid's -# *2wt modes will fail. +# See: http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html +# N.B. The "|}" to close the table is missing from the input, so parsoid's +# *2wt modes will fail. !! test -Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html) +Table security: embedded pipes !! options parsoid=wt2html,html2html !! wikitext @@ -6273,12 +6280,14 @@ parsoid=wt2html,html2html !! html/parsoid -
" onmouseover="alert(document.cookie)">test
+" onmouseover="alert(document.cookie)">test !! end -# FIXME: The php output is broken. +# FIXME: The output seems broken. Filed as T110268. !! test ! and || in td attributes should not be parsed as / +!! options +parsoid=wt2html !! wikitext {| | style="color: red !important;" data-contrived="put this here ||" | foo @@ -6292,7 +6301,7 @@ parsoid=wt2html,html2html !! html/parsoid - +
foo
style="color: red !important;" data-contrived="put this here foo
!! end @@ -7161,8 +7170,10 @@ Link with HTML entity in suffix / tail Link with 3 brackets !! wikitext [[[Main Page]]] +Foo [[[Main Page]]] !! html

[[[Main Page]]] +Foo [[[Main Page]]]

!! end @@ -15892,6 +15903,7 @@ MSIE 6 CSS safety test: sup/sub script (bug 55332) !! end +# FIXME: Parsoid fails to sanitize this! See T58846. !! test Opera -o-link CSS !! wikitext @@ -20714,14 +20726,18 @@ __TOC__

[edit]

!! end +# Don't expect Parsoid to roundtrip this until the php parser comes closer to +# html5 tag parsing. !! test Tags with parameters in TOC +!! options +parsoid=wt2html !! wikitext __TOC__ == Hello == == Evilbye == -!! html +!! html/php

Contents