/* A map of test titles and their manually verified output. If the parser * output matches the expected output listed here, the test can be marked as * passing in parserTests.js. */ testWhiteList = {}; // The nesting of italic/bold tags is changed in this test, but the resulting // formatting is identical testWhiteList["Italics and bold"] = ""; testWhiteList["Bug 2702: Mismatched , and tags are invalid"] = "

texttextSomething in italicSomething mixed, even boldNow both

"; testWhiteList["Unclosed and unmatched quotes"] = "

Bold italic text with bold deactivated in between.

Bold italic text with italic deactivated in between.

Bold text..

..spanning two paragraphs (should not work).

Bold tag left open

Italic tag left open

Normal text.\n

This year's election should beat last year's.

Toms car is bigger than Susans.

"; // The expected result for this test is really broken html. testWhiteList["Link containing double-single-quotes '' in text embedded in italics (bug 4598 sanity check)"] = "

Some pretty italics and stuff!

"; testWhiteList["External link containing double-single-quotes in text embedded in italics (bug 4598 sanity check)"] = "

Some pretty italics and stuff!

"; // This is a rare edge case, and the new behavior is arguably more consistent testWhiteList["5 quotes, code coverage +1 line"] = "

'

"; // The comment in the test already suggests this result as correct, but // supplies the old result without preformatting. testWhiteList["Bug 6200: Preformatted in
"] = "
\nBlah
"; // empty table tags / with only a caption are legal in HTML5. testWhiteList["A table with no data."] = "
"; testWhiteList["A table with nothing but a caption"] = "
caption
"; testWhiteList["Fuzz testing: Parser22"] = "

http://===r:::https://b

"; // MediaWiki changes the order of attributes in tables, ignore that testWhiteList["Multiplication table"] = "
Multiplication table
× 1 2 3
1 1 2 3
2 2 4 6
3 3 6 9
4 4 8 12
5 5 10 15
"; testWhiteList["Nested table"] = "
α
nested
table
the original table again
"; // Very minor whitespace difference at end of cell (MediaWiki inserts a // newline before the close tag even if there was no trailing space in the cell) testWhiteList["Table rowspan"] = "
Cell 1, row 1 Cell 2, row 1 (and 2) Cell 3, row 1
Cell 1, row 2 Cell 3, row 2
"; // Inter-element whitespace only testWhiteList["Indented table markup mixed with indented pre content (proposed in bug 6200)"] = " \n\n
\nText that should be rendered preformatted\n
"; /* Missing token transform functionality */ // We don't implement percent encoding for URIs yet. testWhiteList["Link containing double-single-quotes '' (bug 4598)"] = "

Lista d''e paise d''o munno

"; testWhiteList["Link containing \"<#\" and \">#\" as a hex sequences"] = "

<%23>%23

"; // Sanitizer testWhiteList["Invalid attributes in table cell (bug 1830)"] = "
broken
"; testWhiteList["Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)"] = "
|[1]\" onmouseover=\"alert(document.cookie)\">test
"; // Sanitizer, but UTF8 in link might actually be ok in HTML5 testWhiteList["External link containing double-single-quotes with no space separating the url from text in italics"] = "

La muerte de Casagemas (1901) en el sitio de Museo Picasso.

"; if (typeof module == "object") { module.exports.testWhiteList = testWhiteList; }