/* 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.
"; 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"] = "'
"; // empty table tags / with only a caption are legal in HTML5. testWhiteList["A table with no data."] = "× | 1 | 2 | 3 |
---|---|---|---|
1 | 1 | 2 | 3 |
2 | 2 | 4 | 6 |
3 | 3 | 6 | 9 |
4 | 4 | 8 | 12 |
5 | 5 | 10 | 15 |
α |
| the original table again |
Cell 1, row 1 | Cell 2, row 1 (and 2) | Cell 3, row 1 |
Cell 1, row 2 | Cell 3, row 2 |
\nText that should be rendered preformatted\n |
broken |
|[1]\" onmouseover=\"alert(document.cookie)\">test |