r89600 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89599‎ | r89600 | r89601 >
Date:20:10, 6 June 2011
Author:hashar
Status:ok
Tags:
Comment:
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!
$
Modified paths:
  • /trunk/phase3/tests/parser/parserTests.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/parser/parserTests.txt
@@ -1438,6 +1438,62 @@
14391439 !! end
14401440
14411441 !! test
 1442+Table have th inside tfoot
 1443+!! input
 1444+{|
 1445+| cell1 || cell2
 1446+|-
 1447+! Footer1 !! Footer2
 1448+|}
 1449+!! result
 1450+<table>
 1451+<tbody>
 1452+<tr>
 1453+<td>cell1
 1454+</td>
 1455+<td>cell2
 1456+</td>
 1457+</tr></tbody>
 1458+<tfoot>
 1459+<tr>
 1460+<th>Footer1
 1461+</th>
 1462+<th>Footer2
 1463+</th>
 1464+</tr></tfoot>
 1465+</table>
 1466+
 1467+!! end
 1468+
 1469+!! test
 1470+Table have th inside thead
 1471+!! input
 1472+{|
 1473+! Header1 !! Header2
 1474+|-
 1475+| cell1 || cell2
 1476+|}
 1477+!! result
 1478+<table>
 1479+<thead>
 1480+<tr>
 1481+<th>Header1
 1482+</th>
 1483+<th>Header2
 1484+</th>
 1485+</tr></thead>
 1486+<tbody>
 1487+<tr>
 1488+<td>cell1
 1489+</td>
 1490+<td>cell2
 1491+</td>
 1492+</tr></tbody>
 1493+</table>
 1494+
 1495+!! end
 1496+
 1497+!! test
14421498 Table with list inside
14431499 !! input
14441500 {|

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r85922diebuche21:27, 12 April 2011
r85943Followup to r85922: Output th instead of td for tfootdiebuche12:44, 13 April 2011

Status & tagging log