Improve / add two passing link tests
authorGabriel Wicke <gwicke@wikimedia.org>
Mon, 4 Jun 2012 11:36:18 +0000 (13:36 +0200)
committerGabriel Wicke <gwicke@wikimedia.org>
Mon, 4 Jun 2012 11:36:18 +0000 (13:36 +0200)
* Add a transition *** -> #** to an existing test
* Add a test for interrupted lists

Change-Id: I09b81099a7e8a8b08fefb194670f91648c3e077f

tests/parser/parserTests.txt

index d438174..f37529f 100644 (file)
@@ -2124,6 +2124,8 @@ Mixed list
 **#Number on level 3
 *#number level 2
 *Level 1
+*** Level 3
+#** Level 3, but ordered
 !! result
 <ul><li>Mixed list
 <ol><li> with numbers
@@ -2146,7 +2148,14 @@ Mixed list
 <ol><li>number level 2
 </li></ol>
 </li><li>Level 1
+<ul><li><ul><li> Level 3
 </li></ul>
+</li></ul>
+</li></ul>
+<ol><li><ul><li><ul><li> Level 3, but ordered
+</li></ul>
+</li></ul>
+</li></ol>
 
 !! end
 
@@ -2194,6 +2203,27 @@ List items from template
 
 !! end
 
+!! test
+List interrupted by empty line or heading
+!! input
+* foo
+
+** bar
+== A heading ==
+* Another list item
+!! result
+<ul><li> foo
+</li></ul>
+<ul><li><ul><li> bar
+</li></ul>
+</li></ul>
+<h2><span class="editsection">[<a href="/index.php?title=Parser_test&amp;action=edit&amp;section=1" title="Edit section: A heading">edit</a>]</span> <span class="mw-headline" id="A_heading"> A heading </span></h2>
+<ul><li> Another list item
+</li></ul>
+
+!!end
+
+
 ###
 ### Magic Words
 ###