Test table / list interaction
authorGabriel Wicke <gwicke@wikimedia.org>
Wed, 28 Nov 2012 17:41:40 +0000 (09:41 -0800)
committerGabriel Wicke <gwicke@wikimedia.org>
Wed, 28 Nov 2012 17:41:40 +0000 (09:41 -0800)
Add a test for indented tables with lists in table contents in start-of-line
context.

Change-Id: I6e81e4148873b3ae97287f72630a8ef353cd6e25

tests/parser/parserTests.txt

index 0384434..319e6f6 100644 (file)
@@ -1572,6 +1572,33 @@ should be left alone
 ## See also: https://bugzilla.wikimedia.org/show_bug.cgi?id=6569
 ## and http://lists.wikimedia.org/pipermail/wikitext-l/2011-November/000483.html
 
+!! test
+Table / list interaction: indented table with lists in table contents
+!! input
+:{|
+|-
+| a
+* b
+|-
+| c
+* d
+|}
+!! result
+<dl><dd><table>
+
+<tr>
+<td> a
+<ul><li> b
+</li></ul>
+</td></tr>
+<tr>
+<td> c
+<ul><li> d
+</li></ul>
+</td></tr></table></dd></dl>
+
+!! end
+
 !! test
 Definition Lists: Nesting: Multi-level (Parsoid only)
 !! options