| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <table role="grid" id="table"> |
| <tr role="row"><td role="gridcell">a</td><td>b</td></tr> |
| <tr><td role="gridcell">a</td><td>b</td></tr> |
| description("This tests if a table uses the grid role, but forgets to add role='row' or role='gridcell' to native tr/td elements, it still exposes the right numbers of rows/cells."); |
| if (window.accessibilityController) { |
| var table = accessibilityController.accessibleElementById("table"); |
| shouldBe("table.rowCount", "2"); |
| shouldBe("table.columnCount", "2"); |
| <script src="../resources/js-test-post.js"></script> |