[MediaWiki-commits] [Gerrit] mediawiki...parsoid[master]: Parsoid doesn't support $wgRawHtml==true
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/376438 ) Change subject: Parsoid doesn't support $wgRawHtml==true .. Parsoid doesn't support $wgRawHtml==true This tweak to parserTests.txt removes some unnecessary entries from our test blacklist. https://tools.wmflabs.org/bash/quip/AU7VUGx06snAnmqnK_ry Change-Id: I7ab14281402f3dcc851b1bfa23e591017bc6bca9 --- M tests/parserTests-blacklist.js M tests/parserTests.txt 2 files changed, 4 insertions(+), 9 deletions(-) Approvals: Subramanya Sastry: Looks good to me, approved C. Scott Ananian: Looks good to me, approved jenkins-bot: Verified diff --git a/tests/parserTests-blacklist.js b/tests/parserTests-blacklist.js index 5ab429e..52fddda 100644 --- a/tests/parserTests-blacklist.js +++ b/tests/parserTests-blacklist.js @@ -178,7 +178,6 @@ add("wt2html", "Width-sized image (using px, no following whitespace)", ""); add("wt2html", "Width-sized image (using px, with following whitespace - test regression from r39467)", ""); add("wt2html", "Width-sized image (using px, with preceding whitespace - test regression from r39467)", ""); -add("wt2html", "HTML with raw HTML ($wgRawHtml==true)", "html>script>alert(1);/script>/html>"); add("wt2html", "Parents of subpages, one level up, not named", "Subpage_test/L1/L2"); add("wt2html", "Parents of subpages, two levels up, with lots of extra trailing slashes.", "Subpage_test/L1"); add("wt2html", "RAW magic word", "{{RAW:QUERTY}}"); @@ -211,7 +210,6 @@ add("wt2html", "Special parser function", "Parser function implementation for pf_special missing in Parsoid.\nParser function implementation for pf_special missing in Parsoid.\nParser function implementation for pf_special missing in Parsoid."); add("wt2html", "1. SOL-sensitive wikitext tokens as template-args", "*a\n#a\n:a"); add("wt2html", "Empty table rows go away", "\n Hello\n there\n\n\n"); -add("wt2html", "Validating that isn't eaten by tidy (T167349)", "\n"); // Blacklist for wt2wt @@ -452,7 +450,6 @@ add("html2html", "Width-sized image (using px, no following whitespace)", "<html><style>.foo::before { content: \"<foo>\"; }</style></html>\n<html><style data-mw-foobar=\"baz\">.foo::after { content: \"<bar>\"; }</style></html>
\nhttp://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg\" alt=\"640px-Foobar.jpg\" rel=\"mw:externalImage\" data-parsoid='{\"dsr\":[0,64,null,null]}'/>
\n"); add("html2html", "Width-sized image (using px, with following whitespace - test regression from r39467)", "http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg\" alt=\"640px-Foobar.jpg\" rel=\"mw:externalImage\" data-parsoid='{\"dsr\":[0,64,null,null]}'/>
\n"); add("html2html", "Width-sized image (using px, with preceding whitespace - test regression from r39467)", "http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg\" alt=\"640px-Foobar.jpg\" rel=\"mw:externalImage\" data-parsoid='{\"dsr\":[0,64,null,null]}'/>
\n"); -add("html2html", "HTML with raw HTML ($wgRawHtml==true)", "<script>alert(1);</script>
\n"); add("html2html", "Parents of subpages, one level up", "[/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1 L2]
\n"); add("html2html", "Parents of subpages, one level up, not named", "[/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1 Subpage test/L1/L2]
\n"); add("html2html", "Parents of subpages, two levels up", "[/index.php?title=Subpage_test/L1&action=edit&redlink=1 L1]2
\n\n[/index.php?title=Subpage_test/L1&action=edit&redlink=1 L1l]
\n"); @@ -473,7 +470,6 @@ add("html2html", "T73074: More fostering fun", "\n
[MediaWiki-commits] [Gerrit] mediawiki...parsoid[master]: Parsoid doesn't support $wgRawHtml==true
C. Scott Ananian has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/376438 ) Change subject: Parsoid doesn't support $wgRawHtml==true .. Parsoid doesn't support $wgRawHtml==true This tweak to parserTests.txt removes some unnecessary entries from our test blacklist. Change-Id: I7ab14281402f3dcc851b1bfa23e591017bc6bca9 --- M tests/parserTests-blacklist.js M tests/parserTests.txt 2 files changed, 4 insertions(+), 9 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid refs/changes/38/376438/1 diff --git a/tests/parserTests-blacklist.js b/tests/parserTests-blacklist.js index 5ab429e..52fddda 100644 --- a/tests/parserTests-blacklist.js +++ b/tests/parserTests-blacklist.js @@ -178,7 +178,6 @@ add("wt2html", "Width-sized image (using px, no following whitespace)", ""); add("wt2html", "Width-sized image (using px, with following whitespace - test regression from r39467)", ""); add("wt2html", "Width-sized image (using px, with preceding whitespace - test regression from r39467)", ""); -add("wt2html", "HTML with raw HTML ($wgRawHtml==true)", "html>script>alert(1);/script>/html>"); add("wt2html", "Parents of subpages, one level up, not named", "Subpage_test/L1/L2"); add("wt2html", "Parents of subpages, two levels up, with lots of extra trailing slashes.", "Subpage_test/L1"); add("wt2html", "RAW magic word", "{{RAW:QUERTY}}"); @@ -211,7 +210,6 @@ add("wt2html", "Special parser function", "Parser function implementation for pf_special missing in Parsoid.\nParser function implementation for pf_special missing in Parsoid.\nParser function implementation for pf_special missing in Parsoid."); add("wt2html", "1. SOL-sensitive wikitext tokens as template-args", "*a\n#a\n:a"); add("wt2html", "Empty table rows go away", "\n Hello\n there\n\n\n"); -add("wt2html", "Validating that isn't eaten by tidy (T167349)", "\n"); // Blacklist for wt2wt @@ -452,7 +450,6 @@ add("html2html", "Width-sized image (using px, no following whitespace)", "<html><style>.foo::before { content: \"<foo>\"; }</style></html>\n<html><style data-mw-foobar=\"baz\">.foo::after { content: \"<bar>\"; }</style></html>
\nhttp://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg\" alt=\"640px-Foobar.jpg\" rel=\"mw:externalImage\" data-parsoid='{\"dsr\":[0,64,null,null]}'/>
\n"); add("html2html", "Width-sized image (using px, with following whitespace - test regression from r39467)", "http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg\" alt=\"640px-Foobar.jpg\" rel=\"mw:externalImage\" data-parsoid='{\"dsr\":[0,64,null,null]}'/>
\n"); add("html2html", "Width-sized image (using px, with preceding whitespace - test regression from r39467)", "http://example.com/images/thumb/3/3a/Foobar.jpg/640px-Foobar.jpg\" alt=\"640px-Foobar.jpg\" rel=\"mw:externalImage\" data-parsoid='{\"dsr\":[0,64,null,null]}'/>
\n"); -add("html2html", "HTML with raw HTML ($wgRawHtml==true)", "<script>alert(1);</script>
\n"); add("html2html", "Parents of subpages, one level up", "[/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1 L2]
\n"); add("html2html", "Parents of subpages, one level up, not named", "[/index.php?title=Subpage_test/L1/L2&action=edit&redlink=1 Subpage test/L1/L2]
\n"); add("html2html", "Parents of subpages, two levels up", "[/index.php?title=Subpage_test/L1&action=edit&redlink=1 L1]2
\n\n[/index.php?title=Subpage_test/L1&action=edit&redlink=1 L1l]
\n"); @@ -473,7 +470,6 @@ add("html2html", "T73074: More fostering fun", "\n