diff --git a/tests/parser/parserTests-whitelist.js b/tests/parser/parserTests-whitelist.js index 22bfd7149e..546cbed0ad 100644 --- a/tests/parser/parserTests-whitelist.js +++ b/tests/parser/parserTests-whitelist.js @@ -12,10 +12,39 @@ testWhiteList["Bug 2702: Mismatched , and tags are invalid"] = "

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!

"; + + + // 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
"; +// 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
"; + + + +/* 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; }