2011-12-01 10:58:12 +00:00
/ * A m a p o f t e s t t i t l e s a n d t h e i r m a n u a l l y v e r i f i e d o u t p u t . I f t h e p a r s e r
* output matches the expected output listed here , the test can be marked as
* passing in parserTests . js . * /
testWhiteList = { } ;
2011-12-01 11:47:22 +00:00
// The nesting of italic/bold tags is changed in this test, but the resulting
// formatting is identical
2011-12-01 10:58:12 +00:00
testWhiteList [ 'Italics and bold' ] = "<ul><li> plain</li><li> plain<i>italic</i>plain</li><li> plain<i>italic</i>plain<i>italic</i>plain</li><li> plain<b>bold</b>plain</li><li> plain<b>bold</b>plain<b>bold</b>plain</li><li> plain<i>italic</i>plain<b>bold</b>plain</li><li> plain<b>bold</b>plain<i>italic</i>plain</li><li> plain<i>italic<b>bold-italic</b>italic</i>plain</li><li> plain<b>bold<i>bold-italic</i>bold</b>plain</li><li> plain<i><b>bold-italic</b>italic</i>plain</li><li> plain<i><b>bold-italic</b></i><b>bold</b>plain</li><li> plain<i>italic<b>bold-italic</b></i>plain</li><li> plain<b>bold<i>bold-italic</i></b>plain</li><li> plain l'<i>italic</i>plain</li><li> plain l'<b>bold</b> plain</li></ul>" ;
2011-12-01 14:25:59 +00:00
// We don't care about existing or non-existing pages for now, so don't fail
// on missing redlink
testWhiteList [ "Definition list with wikilink containing colon" ] = "<dl><dt> <a data-type=\"internal\" href=\"Help:FAQ\">Help:FAQ</a></dt><dd> The least-read page on Wikipedia</dd></dl>" ;
2011-12-01 10:58:12 +00:00
if ( typeof module == "object" ) {
module . exports . testWhiteList = testWhiteList ;
}