{
"1. Table tag in SOL posn. should get reparsed correctly with valid TSR": {
"wt2wt": "{{1x|}}\n{| width=\"100%\"\n|foo\n|}"
},
"1. Template wrapping shouldn't ignore fostered content": {
"wt2wt": "\nhiho\n{|\n{{tr}}\n{{1x|\n}}\n\nhiho\n|}"
},
"2. Ensure fostered text content is wrapped in element nodes (traps regressions around fostered marker on the element getting lost)": {
"wt2wt": "
| a\n |
*baz
" }, "2. Template wrapping shouldn't ignore fostered content": { "wt2wt": "\nhiho\n{|\n{{tr}}\n{{1x|\n }}\n\nhiho\n|}" }, "2. includeonly in html attr value": { "wt2html": "bar\nbar
", "wt2wt": "v1 inside a link": {
"wt2wt": "[[Main Page
]] [[Main Page|the main page]][it's not very good]
"
},
"Anchor containing a #. (T65430)": {
"metadata": ""
},
"Attribute test: unquoted but illegal value (hash)": {
"wt2wt": "foo"
},
"Bail on table cell attribute parsing on wikilink": {
"wt2wt": "{|\n|testing [[one|two]] |three ||four\n| testing one two |three||four\n|testing=\"[[one|two]]\" |three ||four\n|}"
},
"Broken link with fragment": {
"metadata": ""
},
"Category with newline in sort key": {
"metadata": "cat=Wikidata:Tools sort=*"
},
"DIV IN UPPERCASE": {
"wt2wt": "HTML ROCKS"
},
"Don't break on | in extension attribute in template": {
"wt2html": "ho\">ha</tag>
"
},
"Don't fall for the self-closing div": {
"wt2wt": "hello world"
},
"Empty LI (T49673)": {
"wt2wt": "*a\n*\n*\n*b"
},
"Empty TD followed by TD with tpl-generated attribute": {
"wt2wt": "{|\n|-\n|\n| {{1x|style='color:red'}} |foo\n|}"
},
"Empty attribute crash test single-quotes (T4067)": {
"wt2wt": "foo"
},
"Empty table rows go away": {
"wt2html": "| Hello | \nthere |
Awesome!
" }, "Handling html with a br self-closing tag": { "wt2wt": "Bold paragraph
\n\nNew wiki paragraph
" }, "Inline wiki vs wiki block nesting": { "wt2wt": "'''Bold paragraph'''\n\nNew wiki paragraph" }, "Media link redirect": { "wt2html": "" }, "Mixing markup for italics and bold": { "wt2wt": "'a\n\n doesn't terminate \n\n doesn't terminate \n\ndoesn't terminate \n\ndoesn't terminate \n\n" }, "Parsing of overlapping (improperly nested) inline html tags": { "wt2wt": " x" }, "Parsoid-centric test: Whitespace in ext- and wiki-links should be preserved": { "wt2wt": "[[Foo| bar]]\n\n[[Foo| ''bar'']]\n\n[http://wp.org foo]\n\n[http://wp.org ''foo'']" }, "Render invalid page names as plain text (T53090)": { "wt2wt": "[[./../foo|bar]]\n[[foo�|bar]]\n[[foo/.|bar]]\n[[foo/..|bar]]\n[[foo~~~bar]] \n[[foo>bar]]\n[[foo[bar]]\n[[.]]\n[[..]]\n[[foo././bar]]\n[[foo[http://example.com]xyz]]\n\n[[{{1x|./../foo}}|bar]]\n[[{{1x|foo/.}}|bar]]\n[[{{1x|foo/..}}|bar]]\n[[{{1x|foo~~~~bar}}]]\n[[{{1x|foo>bar}}]]\n[[{{1x|foo././bar}}]]\n[[{{1x|foo{bar}}]]\n[[{{1x|foo}bar}}]]\n[[{{1x|foo[bar}}]]\n[[{{1x|foo]bar}}]]\n[[{{1x|fooand work, but only for Microdata": { "wt2html": " \n\t", "wt2wt": "<meta itemprop=\"hello\" content=\"world\">\n\t<meta http-equiv=\"refresh\" content=\"5\">\n\t<meta itemprop=\"hello\" http-equiv=\"refresh\" content=\"5\">\n\t<link itemprop=\"hello\" href=\"{{SERVER}}\">\n\t<link rel=\"stylesheet\" href=\"{{SERVER}}\">\n\t<link rel=\"stylesheet\" itemprop=\"hello\" href=\"{{SERVER}}\">
\n\n\t" }, "Self closed html pairs (T7487)": { "wt2html": "\n\t \n\t \n\t \n\t \n\t \n Centered text \nIn div text" }, "Self-closed noinclude, includeonly, onlyinclude tags": { "wt2html": "\n\n" }, "Self-closed tag with broken attribute value quoting": { "wt2html": "Foo
" }, "Special page link with fragment": { "metadata": "" }, "T192913 Regression test: 2. html2wt of links should not trip on parser functions found in target (2)": { "wt2wt": "[[Category:Bugs-{{#if:blah|Regression|None}}|Category:Bugs-{{#if:blah|Regression|None}} ]]\n[[Category:Bugs-{{#if:blah|Regression|None}}-{{#if:blah|2020|None}}|Category:Bugs-{{#if:blah|Regression|None}}-{{#if:blah|2020|None}} ]]" }, "T21052 U+3000 IDEOGRAPHIC SPACE should terminate bracketed external links": { "wt2wt": "[http://www.example.org/ ideograms]" }, "T2529: Uncovered bullet": { "wt2wt": "*Foo{{bullet}}\n" }, "T2529: Uncovered bullet in a deeply nested list": { "wt2wt": "*******Foo\n{{bullet}}\n" }, "T2553: link with two variables in a piped link": { "wt2wt": "{|\n|[[{{{1}}}| {{{2}}}]]\n|}" }, "T368721: Closing block tags not on the stack of open elements in lists": { "wt2wt": "*a\nb\n\n\n*ab" }, "T4095: link with pipe and three closing brackets, version 2": { "wt2wt": "[[Main Page|[http://example.com/] ]]" }, "T4702: Mismatched , and tags are invalid": { "wt2wt": "''[http://example.com text]''\n[http://example.com '''text''']\n''Something [http://example.com in italic]''\n''Something [http://example.com mixed''''', even bold''''']'''\n'''''Now [http://example.com both]'''''" }, "T73074: More fostering fun": { "wt2wt": "[[Category:Two]]\n
{{1x| }}" }, "T88318: p-wrapped dash in table.": { "wt2wt": "{|\n!-\n!-\n|-\n| - \n|- \n|-\n|-\n|
\n-\n|
-\n|}" }, "Table attribute legitimate extension": { "wt2wt": "{|\n! style=\"color:blue \" + |status\n|}" }, "Table attribute safety": { "wt2wt": "{|\n! style=\"border-width:expression(0+alert(document.cookie)) \" + |status\n|}" }, "Table multiple attributes correction": { "wt2wt": "{|\n! class=\"awesome\" + |status\n|}" }, "Template nested in extension tag in template": { "wt2html": "" }, "Template with argument in separate line": { "wt2wt": "{{templateasargtest |\n templ = simple }}" }, "Template with complex arguments": { "wt2html": "link This is a test template with parameter (test)
" }, "Template with invalid target containing tags": { "wt2wt": "{{a b|{{1x|foo}}|{{1x|a}}={{1x|b}}|a = b}} " }, "Template with invalid target containing wikilink": { "wt2html": "{{Main Page}}
", "wt2wt": "{{ [[Main Page]]}} " }, "Templates: HTML Tables: 5. Proper fostering of categories from inside": { "wt2wt": "[[Category:foo1]]\n\n\n[[Category:bar1]]\n[[Category:bar2]]\n
foo " }, "Templates: HTML Tag: 2. Generation of HTML attr. value": { "wt2html": "
foo foo", "wt2wt": "foo" }, "Templates: HTML Tag: 3. Generation of HTML attr key and value": { "wt2html": "foo", "wt2wt": "foo" }, "Templates: HTML Tag: 9. Multiple template-generated attributes": { "wt2wt": "bar" }, "Templates: Handle comments in the target": { "wt2wt": "{{1x\n\n|foo}}\n\n{{1x\n\n |foo}}\n\n{{1x\n|foo}}\n\n{{1x|foo}}\n\n{{1x|foo}}" }, "Templates: Ugly nesting: 1. Quotes opened/closed across templates (1x)": { "wt2html": "abcde
" }, "Templates: Ugly templates: 4. newline-only template parameter inconsistency": { "wt2html": "\n" }, "Trailing newlines in a deep dom-subtree that ends a wikitext line should be migrated out": { "wt2wt": "{|\n|foo\n\nbar\n|}\n\n{|\n|foo\n|}" }, "Using {{!}} in template arguments, part 2 (T290526)": { "wt2html": "\n\n{{ Main Page|Something else }}
" }, "Using {{!}} in wikilinks (T290526)": { "wt2html": "\n\n[[Main Page|Something else]]
" }, "Verify that displaytitle works (T24501) AllowDisplayTitle=false": { "metadata": "Screen" }, "Verify that displaytitle works (T24501) AllowDisplayTitle=false no DISPLAYTITLE": { "metadata": "Screen" }, "Verify that displaytitle works (T24501) RestrictDisplayTitle=true mismatch": { "metadata": "Screen" }, "Verify that displaytitle works (T24501) no displaytitle": { "metadata": "Parser test" }, "Verify that without displaytitle the title encodes & to & (T291985)": { "metadata": "Art©" }, "div with illegal double attributes": { "wt2wt": "HTML rocks" }, "div with single-quoted attribute": { "wt2wt": "HTML rocks" }, "div with unquoted attribute": { "wt2wt": "HTML rocks" } }