Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-table-content.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <style type="text/css">
6   div.foo table:not(.no-header):before{content:'';}
7 </style>
8 <title>Table Anonymous Row</title>
9 </head>
10 <body>
11 <div class="foo" role="grid" id="table">
12   <table>
13         <thead> <tr> <th>Header</th> </tr> </thead>
14         <tbody> <tr> <td> <p>Item 1</p> </td> </tr> </tbody>
15   </table>
16 </div>
17
18 <p id="description"></p>
19 <div id="console"></div>
20
21 <script>
22 description("This tests that in an aria table with CSS that makes a row anonymous, the cells can be accessed.");
23
24 if (window.accessibilityController) {
25     var table = accessibilityController.accessibleElementById("table");
26     var cell00 = table.cellForColumnAndRow(0,0);
27     debug("cell00.role is " + cell00.role);
28     var cell01 = table.cellForColumnAndRow(0,1);
29     debug("cell01.role is " + cell01.role);
30     shouldBeTrue("cell00.isEqual(table.rowAtIndex(0).childAtIndex(0))");
31     shouldBeTrue("cell01.isEqual(table.rowAtIndex(1).childAtIndex(0))");
32 }
33
34 </script>
35
36 <script src="../resources/js-test-post.js"></script>
37 </body>
38 </html>