Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / hidden-th-still-column-header.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script src="../resources/accessibility-helper.js"></script>
6 </head>
7 <body>
8
9 <table border="1" id="table">
10 <tr><th style="position: absolute; left: -99999px;">header 1</th>
11 <th style="position: absolute; left: -99999px;" aria-hidden="true">header2</th>
12 <th>header 3</th>
13 </tr>
14 <tr><td>cell1</td><td>cell2</td><td>cell3</td></tr>
15 </table>
16
17 <p id="description"></p>
18 <div id="console"></div>
19 <script>
20     description("This tests confirms even when a th tag is hidden, it will still be returned as a column header (unless it is hidden).");
21     if (window.accessibilityController) {
22         var table = accessibilityController.accessibleElementById("table");
23         var colHeaders = table.columnHeaders();
24         shouldBe("colHeaders.length", "2");
25         shouldBe("colHeaders[0].childAtIndex(0).childAtIndex(0).stringValue", "'AXValue: header 1'");
26         shouldBe("colHeaders[1].childAtIndex(0).stringValue", "'AXValue: header 3'");
27     }
28 </script>
29 <script src="../resources/js-test-post.js"></script>
30 </body>
31 </html>