From: Gabriel Wicke Date: Tue, 15 Jan 2013 23:01:42 +0000 (-0800) Subject: Test table captions with attributes X-Git-Tag: 1.31.0-rc.0~21028 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=8ddc49d56345fdd74016424db37a6e187829948b;p=lhc%2Fweb%2Fwiklou.git Test table captions with attributes Parsoid did not support these before, but now does. Makes sure this is also covered by a test. Change-Id: I7645d390bc14c4f7f115e857266d0015ddbd9de4 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index c68f7d74b8..8f297adee2 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -2724,6 +2724,45 @@ A table with nothing but a caption !! end +!! test +A table with caption with default-spaced attributes and a table row +!! input +{| +|+ style="color: red;" | caption1 +|- +| foo +|} +!! result + + + +
caption1 +
foo +
+ +!! end + +!! test +A table with captions with non-default spaced attributes and a table row +!! input +{| +|+style="color: red;"|caption2 +|+ style="color: red;"| caption3 +|- +| foo +|} +!! result + + + + +
caption2 + caption3 +
foo +
+ +!! end + !! test Table td-cell syntax variations !! input