Add a couple of broken tests showing why having the table closing tags in the same...
authorPlatonides <platonides@users.mediawiki.org>
Wed, 13 Apr 2011 23:16:22 +0000 (23:16 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 13 Apr 2011 23:16:22 +0000 (23:16 +0000)
tests/parser/parserTests.txt

index 2fb4000..5824b2f 100644 (file)
@@ -1425,6 +1425,38 @@ Heading inside table (affected by r85922)
 
 !! end
 
+!! test
+A table with a caption with unclosed italic
+!! input 
+{|
+|+ ''caption
+|  Cell
+|}
+!! result
+<table>
+<caption><i>caption</i></caption>
+<tr>
+<td>Cell</td>
+</tr>
+</table>
+
+!! end
+
+!! test
+A table with unclosed italic in a cell
+!! input 
+{|
+| ''Cell
+|}
+!! result
+<table>
+<tr>
+<td><i>Cell</i></td>
+</tr>
+</table>
+
+!! end
+
 !! test
 Table security: embedded pipes (http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)
 !! input