From 47f6703dc842e7964421975210f2b45e424f40ce Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 16 Jul 2014 11:13:30 +0200 Subject: [PATCH] Add parser tests about building table with {{!}} {{!}} can be used as part of the open or close table syntax, which is tested with this parser test. Change-Id: I044967a81689ace5b322e7787ebffe186f830dec --- tests/parser/parserTests.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 62e160be25..96a002aafe 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -5295,6 +5295,29 @@ Table-cell after a comment-only-empty-line !! end +!! test +Build table with {{!}} +!! wikitext +{{{!}} class="wikitable" +! header +! second header +{{!}}- style="color:red;" +{{!}} data {{!}}{{!}} style="color:red;" {{!}} second data +{{!}}} +!! html + + + + + + +
header + second header +
data second data +
+ +!! end + # The expected HTML structure in this test is debatable. The PHP parser does # not parse this kind of table at all. The main focus for Parsoid is on # round-tripping, so this output is ok for now. TODO: revisit! -- 2.20.1