Arlolra has uploaded a new change for review. https://gerrit.wikimedia.org/r/223964
Change subject: Eliminate basic selser failures in tests ...................................................................... Eliminate basic selser failures in tests Change-Id: If46d731a8ab7e1342bb89b3ca097aff184000dba --- M tests/parserTests-blacklist.js M tests/parserTests.txt 2 files changed, 5 insertions(+), 10 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid refs/changes/64/223964/1 diff --git a/tests/parserTests-blacklist.js b/tests/parserTests-blacklist.js index 794d374..4d5d865 100644 --- a/tests/parserTests-blacklist.js +++ b/tests/parserTests-blacklist.js @@ -422,7 +422,6 @@ add("wt2wt", "Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line\n(Requires tidy for PHP parser output to be fixed up)", "{|\n!''a''!!''b''\n|''a''||''b''\n|}"); add("wt2wt", "Non-word characters don't terminate tag names (bug 17663, 40670, 52022)", "<blockquote|>a\n\n<b→> doesn't terminate </b→>\n\n<bä> doesn't terminate </bä>\n\n<boo> doesn't terminate </boo>\n\n<s.foo> doesn't terminate </s.foo>\n\n<sub-ID#1>\n"); add("wt2wt", "Non-word characters don't terminate tag names + tidy", "<blockquote|>a\n\n<b→> doesn't terminate </b→>\n\n<bä> doesn't terminate </bä>\n\n<boo> doesn't terminate </boo>\n\n<s.foo> doesn't terminate </s.foo>\n\n<sub-ID#1>\n"); -add("wt2wt", "Isolated close tags should be treated as literal text (bug 52760)", "\n<s.foo>s\n"); add("wt2wt", "<nowiki> inside <pre> (bug 13238)", "<pre>\n<nowiki>\n</pre>\n<pre>\n<nowiki></nowiki>\n</pre>\n<pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>"); add("wt2wt", "<nowiki> and <pre> preference (first one wins)", "<pre>\n<nowiki>\n</pre>\n</nowiki>\n</pre>\n\n<nowiki>\n<pre>\n<nowiki>\n</pre>\n</nowiki>\n</pre>\n"); add("wt2wt", "Templates: Indent-Pre: 1f: Wrapping should be based on expanded content", "{{echo| }}a\n\n{{echo|\n }}a\n\n{{echo|\n b}}\n\n{{echo|a\n }}b\n\n{{echo|a\n}}\n b\n"); @@ -903,7 +902,6 @@ add("html2wt", "Non-word characters don't terminate tag names (bug 17663, 40670, 52022)", "<blockquote|>a<nowiki></blockquote></nowiki>\n\n<b→> doesn't terminate </b→>\n\n<bä> doesn't terminate </bä>\n\n<boo> doesn't terminate </boo>\n\n<s.foo> doesn't terminate </s.foo>\n\n<sub-ID#1>\n"); add("html2wt", "Non-word characters don't terminate tag names + tidy", "<blockquote|>a\n\n<b→> doesn't terminate </b→>\n\n<bä> doesn't terminate </bä>\n\n<boo> doesn't terminate </boo>\n\n<s.foo> doesn't terminate </s.foo>\n\n<sub-ID#1>\n"); add("html2wt", "Non-word characters are valid in extension tags (T19663)", " 'tåg'\n array (\n )\n"); -add("html2wt", "Isolated close tags should be treated as literal text (bug 52760)", "<s.foo>s\n"); add("html2wt", "Bare pipe character from a template (bug 52363)", "|\n"); add("html2wt", "<nowiki> unordered list", "<nowiki>*</nowiki> This is not an unordered list item.\n"); add("html2wt", "<nowiki> spacing", "Lorem ipsum dolor\nsed abit.\n<nowiki> sed nullum.\n:</nowiki>and a colon\n"); @@ -1755,13 +1753,6 @@ add("selser", "Parsoid only: Quote balancing context should be restricted to td/th cells on the same wikitext line\n(Requires tidy for PHP parser output to be fixed up) [[4,1]]", "{|<!--etpqkkwhhxhl4n29-->\n!''a!!''b\n|''a||''b\n|}"); add("selser", "Non-word characters don't terminate tag names (bug 17663, 40670, 52022) 5", "<blockquote|>a\n\n<b→> doesn't terminate </b→>\n\n<bä> doesn't terminate </bä>\n\n<boo> doesn't terminate </boo>\n\n<s.foo> doesn't terminate </s.foo>\n\n<sub-ID#1>\n"); add("selser", "Non-word characters don't terminate tag names + tidy 5", "<blockquote|>a\n\n<b→> doesn't terminate </b→>\n\n<bä> doesn't terminate </bä>\n\n<boo> doesn't terminate </boo>\n\n<s.foo> doesn't terminate </s.foo>\n\n<sub-ID#1>\n"); -add("selser", "Isolated close tags should be treated as literal text (bug 52760) 5", "\n<s.foo>s</s>\n"); -add("selser", "Isolated close tags should be treated as literal text (bug 52760) [0,2]", "\n042kzd02zerejyvi\n\n<s.foo>s</s>"); -add("selser", "Isolated close tags should be treated as literal text (bug 52760) [4,0]", "yfesui45qvoswcdi\n\n<s.foo>s</s>"); -add("selser", "Isolated close tags should be treated as literal text (bug 52760) [4,2]", "r2hqo7bkxona5rk9\n\npnoi1dw78cvrt3xr\n\n<s.foo>s</s>"); -add("selser", "Isolated close tags should be treated as literal text (bug 52760) [3,2]", "i8usmsqui9kke29\n\n<s.foo>s</s>"); -add("selser", "Isolated close tags should be treated as literal text (bug 52760) [2,0]", "zskmdh55uiuxflxr\n\n<s.foo>s</s>"); -add("selser", "Isolated close tags should be treated as literal text (bug 52760) [3,0]", "<s.foo>s</s>"); add("selser", "Empty lines between lines with block tags [0,0,0,0,4,[4],0,4,2,4,2,0,0,3,3,0,0,[4]]", "<div></div>\n\n\n0jr2knw69qode7b9\n\nak4f0xoun9bv5cdi\n\n4us29365j9f9lik9\n\n3sh6psvknz3hm2t9\n\n8z2ywhrg9wl8fr\n\nz7s9at3qyq2xogvi\n\nb\n\n<div>b</div>\n<div>h2r4miiukcoez5mi</div>"); add("selser", "Empty lines between lines with block tags [0,4,2,2,0,4,0,[2],0,[4],3,0,0,0,0,2,3,0]", "<div></div>g72sdt9b9996bt9\n\nau765cdgwcsg7gb9\n\n\n\nqhrfek8hsgkz9f6r\n<div></div>rw83ofcbk55vzpvi\n\nvky2au8c7nmnp14ib\n<div>eu25mfmjxi0sh5mi</div>\n\n<div>b</div>d\n\nvxxu49npeng66r\n\n<div>e</div>"); add("selser", "<nowiki> inside <pre> (bug 13238) [4,2,2,0,0]", "ptjux9vq9zarlik9\n\ny7rebotz1jo1dcxr\nnb7mtl9jj0jm7vi<pre>\n<nowiki></nowiki>\n</pre>\n<pre><nowiki><nowiki></nowiki>Foo<nowiki></nowiki></nowiki></pre>"); diff --git a/tests/parserTests.txt b/tests/parserTests.txt index 439b2f3..a4a2e34 100644 --- a/tests/parserTests.txt +++ b/tests/parserTests.txt @@ -1325,11 +1325,15 @@ !! test Isolated close tags should be treated as literal text (bug 52760) +!! options +parsoid=wt2html !! wikitext </b> <s.foo>s</s> -!! html+tidy +!! html/php+tidy +<p><s.foo>s</p> +!! html/parsoid <p><s.foo>s</p> !! end -- To view, visit https://gerrit.wikimedia.org/r/223964 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: If46d731a8ab7e1342bb89b3ca097aff184000dba Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/parsoid Gerrit-Branch: master Gerrit-Owner: Arlolra <abrea...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits