From: umherirrender Date: Wed, 16 Jul 2014 09:13:30 +0000 (+0200) Subject: Add parser tests about building table with {{!}} X-Git-Tag: 1.31.0-rc.0~14141^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=47f6703dc842e7964421975210f2b45e424f40ce;p=lhc%2Fweb%2Fwiklou.git 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 --- 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!