Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / table-header-calculation-for-header-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 <div id="content">
9 <table border=1 id="table1">
10 <tr><th>header 1</th><th>header 2</th><th>header 3</th></tr>
11 <tr><td>cell 1</th><th>cell 2</th><th>cell 2</th></tr>
12 </table>
13
14 <table border=1 id="table2">
15 <tr><th>header 1</th><td>header 2</th><td>header 3</th></tr>
16 <tr><td>cell 1</th><th>cell 2</th><th>cell 2</th></tr>
17 </table>
18
19 </div>
20
21 <p id="description"></p>
22 <div id="console"></div>
23
24 <script>
25
26     description("This test makes sure cells are not marked as row headers when they're in a row of headers.");
27
28     if (window.accessibilityController) {
29          var table1 = accessibilityController.accessibleElementById("table1");
30          shouldBe("table1.rowHeaders().length", "0");
31
32          var table2 = accessibilityController.accessibleElementById("table2");
33          shouldBe("table2.rowHeaders().length", "1");
34
35          document.getElementById("content").style.visibility = "hidden";
36     }
37
38 </script>
39
40 <script src="../resources/js-test-post.js"></script>
41 </body>
42 </html>