Skip to content

Commit

Permalink
Added unit test for multi header tables
Browse files Browse the repository at this point in the history
  • Loading branch information
ironikart committed Sep 17, 2020
1 parent e7c2978 commit 1000287
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions Tests/WCAG2/1_3_1_Table_Header_Attr.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
Assert: No Error *.H43.MissingHeadersAttrs on #correctTableHeadersComplexRowspan
Assert: No Error *.H63.1 on #correctTableHeadersComplexRowspan
Assert: No Error *.H43,H63 on #correctTableHeadersComplexRowspan
Assert: No Error *.H43.IncorrectAttr on #multiHeaders
-->
</head>
<body>
Expand Down Expand Up @@ -108,5 +109,50 @@
</tr>
</tbody>
</table>
<table id="multiHeaders">
<caption>
Supplier contacts
</caption>
<tbody><tr>
<th id="blank">&nbsp;</th>
<th id="co1" headers="blank">Example 1 Ltd</th>
<th id="co2" headers="blank">Example 2 Co</th>
</tr>
<tr>
<th id="c1" headers="blank">Contact</th>
<td headers="co1 c1">James Phillips</td>
<td headers="co2 c1">Marie Beauchamp</td>
</tr>
<tr>
<th id="p1" headers="blank">Position</th>
<td headers="co1 p1">Sales Director</td>
<td headers="co2 p1">Sales Manager</td>
</tr>
<tr>
<th id="e1" headers="blank">Email</th>
<td headers="co1 e1">[email protected]</td>
<td headers="co2 e1">[email protected]</td>
</tr>
<tr>
<th>&nbsp;</th>
<th id="co3" headers="blank">Example 3 Ltd</th>
<th id="co4" headers="blank">Example 4 Inc</th>
</tr>
<tr>
<th id="c2" headers="blank">Contact</th>
<td headers="co3 c2">Suzette Jones</td>
<td headers="co4 c2">Alex Howe</td>
</tr>
<tr>
<th id="p2" headers="blank">Position</th>
<td headers="co3 p2">Sales Officer</td>
<td headers="co4 p2">Sales Director</td>
</tr>
<tr>
<th id="e2" headers="blank">Email</th>
<td headers="co3 e2">[email protected]</td>
<td headers="co4 e2">[email protected]</td>
</tr>
</tbody></table>
</body>
</html>

0 comments on commit 1000287

Please sign in to comment.