{ "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": "|| ||\n\n
a\n
" }, "2. Lists with start-of-line-transparent tokens before bullets: Template close": { "wt2html": "\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": "v1v2\">bar\n"v1""v2"\">bar" }, "4. includeonly in table attributes": { "wt2html": "\n\n\n
" }, "8. Encapsulate foster-parented transclusion content": { "wt2wt": "{{1x|a\n}}\n{|{{1x|style='color:red'}}\n|-\n|b\n|}\n" }, "
 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": "\n\n\n\n\n
Hellothere
" }, "Fuzz testing: Parser13": { "wt2wt": "{| \n| http: / a |\n|}" }, "Fuzz testing: Parser16": { "wt2wt": "{|\n!https://|| || ||\n|}" }, "Fuzz testing: Parser21": { "wt2wt": "{|\n!irc://{{ftp://a\" onmouseover=\"alert('hello world');\"\n|\n|}" }, "Fuzz testing: Parser22": { "wt2wt": "http://===r:::https://b\n\n{|\n|}" }, "HTML multiple attributes correction": { "wt2wt": "

Awesome!

" }, "Handling html with a br self-closing tag": { "wt2wt": "
\n
\n
\n
\n
\n
" }, "Handling html with a div self-closing tag": { "wt2html": "
\n
\n
\n
\n
\n
", "wt2wt": "
\n
\n
\n
\n
\n
" }, "Horizontal ruler (should it add that extra space?)": { "wt2wt": "
\n
\nfoo
bar" }, "Ignore pipe between table row attributes": { "wt2wt": "{|\n|quux\n|- id=\"foo\" style=\"color: red\" |\n|bar\n|}" }, "Inline HTML vs wiki block nesting": { "wt2html": "

Bold paragraph

\n\n

New wiki paragraph

" }, "Inline wiki vs wiki block nesting": { "wt2wt": "'''Bold paragraph'''\n\nNew wiki paragraph" }, "Media link redirect": { "wt2html": "

Media:Redirect to foobar.jpg

" }, "Mixing markup for italics and bold": { "wt2wt": "'''bold''''''bold''bolditalics'''''" }, "Nested lists 3 (first element empty)": { "wt2wt": "\n**bar\n" }, "Nested lists 6 (both elements empty)": { "wt2wt": "\n**\n" }, "Non-word characters don't terminate tag names (T19663, T42670, T54022)": { "wt2wt": "a\n\n doesn't terminate \n\n doesn't terminate \n\n doesn't terminate \n\n doesn'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|foo and work, but only for Microdata": { "wt2html": "
\n\t

<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
", "wt2wt": "
\n\t\n\t\n\t\n\t\n\t\n\t\n
" }, "Self closed html pairs (T7487)": { "wt2html": "
Centered text
\n
In 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*a

b" }, "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": "

hihi\nhihi\n{{{1}}}\nhi

" }, "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": "{{ab|{{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
foo
\n\n[[Category:bar1]]\n[[Category:bar2]]\n
foo
" }, "Templates: HTML Tag: 2. Generation of HTML attr. value": { "wt2html": "
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": "

Template:Main Page

\n\n

{{ Main Page|Something else }}

" }, "Using {{!}} in wikilinks (T290526)": { "wt2html": "

Main PageSomething else

\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
" } }