From: Mark A. Hershberger Date: Sat, 23 Apr 2011 21:26:04 +0000 (+0000) Subject: * Add preprocessor tests that Bergi supplied for Bug #28642 X-Git-Tag: 1.31.0-rc.0~30590 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=2e6a9b9cea051d558df10dfa0d2273079e66db89;p=lhc%2Fweb%2Fwiklou.git * Add preprocessor tests that Bergi supplied for Bug #28642 * Add Bergi to CREDITS --- diff --git a/CREDITS b/CREDITS index 9445b97c5f..50d9c3ac7f 100644 --- a/CREDITS +++ b/CREDITS @@ -10,6 +10,7 @@ following names for their contribution to the product. * Aryeh Gregor * Ashar Voultoiz * Bertrand Grondin +* Bergi * Brion Vibber * Bryan Tong Minh * Chad Horohoe diff --git a/tests/parser/preprocess/Headings.expected b/tests/parser/preprocess/Headings.expected new file mode 100644 index 0000000000..ab3103c3a2 --- /dev/null +++ b/tests/parser/preprocess/Headings.expected @@ -0,0 +1,71 @@ +These should become headings: + +== h ==<!--c1--> + +== h == <!--c1--> + +== h ==<!--c1--> + +== h == <!--c1--> + +== h ==<!--c1--><!--c2--> + +== h == <!--c1--><!--c2--> + +== h ==<!--c1--><!--c2--> + +== h == <!--c1--><!--c2--> + +== h == <!--c1--> <!--c2--> + +== h ==<!--c1--> <!--c2--> + +== h == <!--c1--> <!--c2--> + +== h ==<!--c1--><!--c2--><!--c3--> + +== h ==<!--c1--> <!--c2--><!--c3--> + +== h ==<!--c1--><!--c2--> <!--c3--> + +== h ==<!--c1--> <!--c2--> <!--c3--> + +== h == <!--c1--><!--c2--><!--c3--> + +== h == <!--c1--> <!--c2--><!--c3--> + +== h == <!--c1--><!--c2--> <!--c3--> + +== h == <!--c1--> <!--c2--> <!--c3--> + +== h ==<!--c1--><!--c2--><!--c3--> + +== h ==<!--c1--> <!--c2--><!--c3--> + +== h ==<!--c1--><!--c2--> <!--c3--> + +== h ==<!--c1--> <!--c2--> <!--c3--> + +== h == <!--c1--><!--c2--><!--c3--> + +== h == <!--c1--> <!--c2--><!--c3--> + +== h == <!--c1--><!--c2--> <!--c3--> + +== h == <!--c1--> <!--c2--> <!--c3--> + + +Those are not working: + +== h ==<!--c1--> <!--c2--> + +== h == <!--c1--> <!--c2--> + +== h ==<!--c1--> <!--c2--> + +== h == x <!--c1--><!--c2--><!--c3--> + +== h ==<!--c1--> x <!--c2--><!--c3--> + +== h ==<!--c1--><!--c2--><!--c3--> x + \ No newline at end of file diff --git a/tests/parser/preprocess/Headings.txt b/tests/parser/preprocess/Headings.txt new file mode 100644 index 0000000000..940afbee4f --- /dev/null +++ b/tests/parser/preprocess/Headings.txt @@ -0,0 +1,70 @@ +These should become headings: + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + +== h == + + +Those are not working: + +== h == + +== h == + +== h == + +== h == x + +== h == x + +== h == x diff --git a/tests/phpunit/includes/parser/PreprocessorTest.php b/tests/phpunit/includes/parser/PreprocessorTest.php index 39063326f6..d6fc376740 100644 --- a/tests/phpunit/includes/parser/PreprocessorTest.php +++ b/tests/phpunit/includes/parser/PreprocessorTest.php @@ -116,6 +116,7 @@ class PreprocessorTest extends MediaWikiTestCase { array( "Factorial" ), # http://en.wikipedia.org/w/index.php?title=Template:Factorial&oldid=98548758 GFDL + CC-BY-SA by Polonium array( "All_system_messages" ), # http://tl.wiktionary.org/w/index.php?title=Suleras:All_system_messages&oldid=2765 GPL text generated by MediaWiki array( "Fundraising" ), # http://tl.wiktionary.org/w/index.php?title=MediaWiki:Sitenotice&oldid=5716 GFDL + CC-BY-SA, copied there by Sky Harbor. + array( "Headings" ), # https://bugzilla.wikimedia.org/28642 ); }