Test for bug 42252 (indented pre syntax)
authorGabriel Wicke <gwicke@wikimedia.org>
Tue, 15 Jan 2013 23:53:39 +0000 (15:53 -0800)
committerGabriel Wicke <gwicke@wikimedia.org>
Tue, 15 Jan 2013 23:53:39 +0000 (15:53 -0800)
This bug has since been fixed in Parsoid. Make sure it stays that way by
testing it.

Change-Id: Iba77a72635877dfb420534142abb59e155567d6a

tests/parser/parserTests.txt

index 8f297ad..bed5c24 100644 (file)
@@ -1207,6 +1207,23 @@ c
 
 !!end
 
+!!test
+2c. Indent-Pre and tables (bug 42252)
+!!input
+{|
+ |+ foo
+ !  | bar
+|}
+!!result
+<table>
+<caption> foo
+</caption>
+<tr>
+<th> bar
+</th></tr></table>
+
+!!end
+
 !!test
 3a. Indent-Pre and block tags (single-line html)
 !!input