Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / table-with-missing-aria-role-rows.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <table role="grid" id="table">
9 <tr role="row"><td role="gridcell">a</td><td>b</td></tr>
10 <tr><td role="gridcell">a</td><td>b</td></tr>
11 </table>
12
13
14 <p id="description"></p>
15 <div id="console"></div>
16
17 <script>
18
19     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.");
20
21     if (window.accessibilityController) {
22         var table = accessibilityController.accessibleElementById("table");
23         shouldBe("table.rowCount", "2");
24         shouldBe("table.columnCount", "2");
25     }
26
27 </script>
28
29 <script src="../resources/js-test-post.js"></script>
30 </body>
31 </html>