From: Antoine Musso Date: Mon, 6 Jun 2011 20:10:51 +0000 (+0000) Subject: test thead / tfooter contains th elements X-Git-Tag: 1.31.0-rc.0~29656 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=c95a8c0b39450e69005835a792976944109f1b7d;p=lhc%2Fweb%2Fwiklou.git test thead / tfooter contains th elements Implemented by r85922. Cover r85943. TEST PLAN: $ php parserTests.php --regex 'Table have th inside t' This is MediaWiki version 1.19alpha (r89594). Reading tests from "tests/parser/parserTests.txt"... Running test Table have th inside tfoot... PASSED Running test Table have th inside thead... PASSED Reading tests from "tests/parser/extraParserTests.txt"... Reading tests from "../mwexts/LabeledSectionTransclusion/lstParserTests.txt"... Passed 2 of 2 tests (100%)... ALL TESTS PASSED! $ --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index d7d9a26413..492d64699b 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -1437,6 +1437,62 @@ Table with thead & tfoot !! end +!! test +Table have th inside tfoot +!! input +{| +| cell1 || cell2 +|- +! Footer1 !! Footer2 +|} +!! result + + + + + + + + + + + +
cell1 +cell2 +
Footer1 +Footer2 +
+ +!! end + +!! test +Table have th inside thead +!! input +{| +! Header1 !! Header2 +|- +| cell1 || cell2 +|} +!! result + + + + + + + + + + + +
Header1 +Header2 +
cell1 +cell2 +
+ +!! end + !! test Table with list inside !! input