From 8ddc49d56345fdd74016424db37a6e187829948b Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Tue, 15 Jan 2013 15:01:42 -0800 Subject: [PATCH] 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 --- tests/parser/parserTests.txt | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) 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 -- 2.20.1