/* 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"] = "
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"] = ""; // empty table tags / with only a caption are legal in HTML5. testWhiteList["A table with no data."] = "\nBlah"; testWhiteList["A table with nothing but a caption"] = "
"; testWhiteList["Fuzz testing: Parser22"] = "
caption "; // MediaWiki changes the order of attributes in tables, ignore that testWhiteList["Multiplication table"] = "
"; testWhiteList["Nested 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 "; // 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"] = "
α
nested table the original table again "; // Inter-element whitespace only testWhiteList["Indented table markup mixed with indented pre content (proposed in bug 6200)"] = " \n\n
Cell 1, row 1 Cell 2, row 1 (and 2) Cell 3, row 1 Cell 1, row 2 Cell 3, row 2 "; /* Missing token transform functionality */ // We don't implement percent encoding for URIs yet. testWhiteList["Link containing double-single-quotes '' (bug 4598)"] = ""; testWhiteList["Link containing \"<#\" and \">#\" as a hex sequences"] = ""; // Sanitizer testWhiteList["Invalid attributes in table cell (bug 1830)"] = "
\nText that should be rendered preformatted\n"; testWhiteList["Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)"] = "
broken "; // 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"] = "
|[1]\" onmouseover=\"alert(document.cookie)\">test La muerte de Casagemas (1901) en el sitio de Museo Picasso.
"; // plain percent sign is also valid in HTML5 testWhiteList["Bug 4781, 5267: %28, %29 in URL"] = "http://www.example.com/?title=Ben-Hur_(1959_film)
"; testWhiteList["External links: wiki links within external link (Bug 3695)"] = "wikilink embedded in ext link
"; testWhiteList["Bug 4781, 5267: %25 in URL"] = "http://www.example.com/?title=100%_Bran
"; testWhiteList["with forbidden attribute values (bug 3202)"] = "Narrow screen goodies"; if (typeof module == "object") { module.exports.testWhiteList = testWhiteList; }