Page MenuHomePhabricator

bug28642_test.patch

Authored By
bzimport
Nov 21 2014, 11:35 PM
Size
6 KB
Referenced Files
None
Subscribers
None

bug28642_test.patch

Index: parser/preprocess/Headings.expected
===================================================================
--- parser/preprocess/Headings.expected (Revision 0)
+++ parser/preprocess/Headings.expected (Revision 0)
@@ -0,0 +1,71 @@
+<root>These should become headings:
+
+<h level="2" i="1">== h ==<comment>&lt;!--c1--&gt;</comment></h>
+
+<h level="2" i="2">== h == <comment>&lt;!--c1--&gt;</comment></h>
+
+<h level="2" i="3">== h ==<comment>&lt;!--c1--&gt;</comment> </h>
+
+<h level="2" i="4">== h == <comment>&lt;!--c1--&gt;</comment> </h>
+
+<h level="2" i="5">== h ==<comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment></h>
+
+<h level="2" i="6">== h == <comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment></h>
+
+<h level="2" i="7">== h ==<comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment> </h>
+
+<h level="2" i="8">== h == <comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment> </h>
+
+<h level="2" i="9">== h == <comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment></h>
+
+<h level="2" i="10">== h ==<comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment> </h>
+
+<h level="2" i="11">== h == <comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment> </h>
+
+<h level="2" i="12">== h ==<comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment><comment>&lt;!--c3--&gt;</comment></h>
+
+<h level="2" i="13">== h ==<comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment><comment>&lt;!--c3--&gt;</comment></h>
+
+<h level="2" i="14">== h ==<comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment> <comment>&lt;!--c3--&gt;</comment></h>
+
+<h level="2" i="15">== h ==<comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment> <comment>&lt;!--c3--&gt;</comment></h>
+
+<h level="2" i="16">== h == <comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment><comment>&lt;!--c3--&gt;</comment></h>
+
+<h level="2" i="17">== h == <comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment><comment>&lt;!--c3--&gt;</comment></h>
+
+<h level="2" i="18">== h == <comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment> <comment>&lt;!--c3--&gt;</comment></h>
+
+<h level="2" i="19">== h == <comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment> <comment>&lt;!--c3--&gt;</comment></h>
+
+<h level="2" i="20">== h ==<comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment><comment>&lt;!--c3--&gt;</comment> </h>
+
+<h level="2" i="21">== h ==<comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment><comment>&lt;!--c3--&gt;</comment> </h>
+
+<h level="2" i="22">== h ==<comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment> <comment>&lt;!--c3--&gt;</comment> </h>
+
+<h level="2" i="23">== h ==<comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment> <comment>&lt;!--c3--&gt;</comment> </h>
+
+<h level="2" i="24">== h == <comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment><comment>&lt;!--c3--&gt;</comment> </h>
+
+<h level="2" i="25">== h == <comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment><comment>&lt;!--c3--&gt;</comment> </h>
+
+<h level="2" i="26">== h == <comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment> <comment>&lt;!--c3--&gt;</comment> </h>
+
+<h level="2" i="27">== h == <comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment> <comment>&lt;!--c3--&gt;</comment> </h>
+
+
+Those are not working:
+
+== h ==<comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment>
+
+== h == <comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment>
+
+== h ==<comment>&lt;!--c1--&gt;</comment> <comment>&lt;!--c2--&gt;</comment>
+
+== h == x <comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment><comment>&lt;!--c3--&gt;</comment>
+
+== h ==<comment>&lt;!--c1--&gt;</comment> x <comment>&lt;!--c2--&gt;</comment><comment>&lt;!--c3--&gt;</comment>
+
+== h ==<comment>&lt;!--c1--&gt;</comment><comment>&lt;!--c2--&gt;</comment><comment>&lt;!--c3--&gt;</comment> x
+</root>
\ No newline at end of file
Index: parser/preprocess/Headings.txt
===================================================================
--- parser/preprocess/Headings.txt (Revision 0)
+++ parser/preprocess/Headings.txt (Revision 0)
@@ -0,0 +1,70 @@
+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
Index: phpunit/includes/parser/PreprocessorTest.php
===================================================================
--- phpunit/includes/parser/PreprocessorTest.php (Revision 86761)
+++ phpunit/includes/parser/PreprocessorTest.php (Arbeitskopie)
@@ -116,6 +116,7 @@
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"), # attachments of Bug 28642
);
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7403
Default Alt Text
bug28642_test.patch (6 KB)

Event Timeline