["{{Foo|[[[[bar]]|baz]]}}","<root><template><title>Foo</title><part><name index=\"1\" /><value>[[[[bar]]|baz]]</value></part></template></root>"],// This test is important, since it means the difference between having the [[ rule stacked or not
$this->markTestIncomplete("File $expectedFilename missing. Output stored as $tempFilename");
}
}
/**
* Tests from T30642 · https://phabricator.wikimedia.org/T30642
*/
publicstaticfunctionprovideHeadings(){
return[
/* These should become headings: */
["== h ==<!--c1-->","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment></h></root>"],
["== h == <!--c1-->","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment></h></root>"],
["== h ==<!--c1--> ","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment> </h></root>"],
["== h == <!--c1--> ","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment> </h></root>"],
["== h ==<!--c1--><!--c2-->","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment><comment><!--c2--></comment></h></root>"],
["== h == <!--c1--><!--c2-->","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment><comment><!--c2--></comment></h></root>"],
["== h ==<!--c1--><!--c2--> ","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment><comment><!--c2--></comment> </h></root>"],
["== h == <!--c1--><!--c2--> ","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment><comment><!--c2--></comment> </h></root>"],
["== h == <!--c1--> <!--c2-->","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment> <comment><!--c2--></comment></h></root>"],
["== h ==<!--c1--> <!--c2--> ","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment> <comment><!--c2--></comment> </h></root>"],
["== h == <!--c1--> <!--c2--> ","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment> <comment><!--c2--></comment> </h></root>"],
["== h ==<!--c1--><!--c2--><!--c3-->","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment><comment><!--c2--></comment><comment><!--c3--></comment></h></root>"],
["== h ==<!--c1--> <!--c2--><!--c3-->","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment> <comment><!--c2--></comment><comment><!--c3--></comment></h></root>"],
["== h ==<!--c1--><!--c2--> <!--c3-->","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment><comment><!--c2--></comment> <comment><!--c3--></comment></h></root>"],
["== h ==<!--c1--> <!--c2--> <!--c3-->","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment> <comment><!--c2--></comment> <comment><!--c3--></comment></h></root>"],
["== h == <!--c1--><!--c2--><!--c3-->","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment><comment><!--c2--></comment><comment><!--c3--></comment></h></root>"],
["== h == <!--c1--> <!--c2--><!--c3-->","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment> <comment><!--c2--></comment><comment><!--c3--></comment></h></root>"],
["== h == <!--c1--><!--c2--> <!--c3-->","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment><comment><!--c2--></comment> <comment><!--c3--></comment></h></root>"],
["== h == <!--c1--> <!--c2--> <!--c3-->","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment> <comment><!--c2--></comment> <comment><!--c3--></comment></h></root>"],
["== h ==<!--c1--><!--c2--><!--c3--> ","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment><comment><!--c2--></comment><comment><!--c3--></comment> </h></root>"],
["== h ==<!--c1--> <!--c2--><!--c3--> ","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment> <comment><!--c2--></comment><comment><!--c3--></comment> </h></root>"],
["== h ==<!--c1--><!--c2--> <!--c3--> ","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment><comment><!--c2--></comment> <comment><!--c3--></comment> </h></root>"],
["== h ==<!--c1--> <!--c2--> <!--c3--> ","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment> <comment><!--c2--></comment> <comment><!--c3--></comment> </h></root>"],
["== h == <!--c1--><!--c2--><!--c3--> ","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment><comment><!--c2--></comment><comment><!--c3--></comment> </h></root>"],
["== h == <!--c1--> <!--c2--><!--c3--> ","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment> <comment><!--c2--></comment><comment><!--c3--></comment> </h></root>"],
["== h == <!--c1--><!--c2--> <!--c3--> ","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment><comment><!--c2--></comment> <comment><!--c3--></comment> </h></root>"],
["== h == <!--c1--> <!--c2--> <!--c3--> ","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment> <comment><!--c2--></comment> <comment><!--c3--></comment> </h></root>"],
["== h ==<!--c1--> <!--c2-->","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment> <comment><!--c2--></comment></h></root>"],
["== h == <!--c1--> <!--c2-->","<root><h level=\"2\" i=\"1\">== h == <comment><!--c1--></comment> <comment><!--c2--></comment></h></root>"],
["== h ==<!--c1--> <!--c2--> ","<root><h level=\"2\" i=\"1\">== h ==<comment><!--c1--></comment> <comment><!--c2--></comment> </h></root>"],
/* These are not working: */
["== h == x <!--c1--><!--c2--><!--c3--> ","<root>== h == x <comment><!--c1--></comment><comment><!--c2--></comment><comment><!--c3--></comment> </root>"],
["== h ==<!--c1--> x <!--c2--><!--c3--> ","<root>== h ==<comment><!--c1--></comment> x <comment><!--c2--></comment><comment><!--c3--></comment> </root>"],
["== h ==<!--c1--><!--c2--><!--c3--> x ","<root>== h ==<comment><!--c1--></comment><comment><!--c2--></comment><comment><!--c3--></comment> x </root>"],