Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / non-data-table-cell-title-ui-element.html
1 <html>
2 <script>
3     if (window.testRunner)
4         testRunner.dumpAsText();
5 </script>
6 <body id="body">
7  
8     <!-- This test makes sure that tables that are not exposed as tables do not have title ui elements incorrectly set  -->
9
10 <TABLE>
11 <tbody><tr><td colspan="6"><h2>ATS</h2></td></tr>
12 <tr>
13 <th>pass</th>
14 <th>issue</th>
15 <th>fail</th>
16 <th>blocked</th>
17 <th id="skip">skip</th>
18 <th>test</th>
19 </tr>
20 </tbody>
21 </tABLE>
22     
23     <div id="result"></div>
24
25      
26     <script>
27         if (window.accessibilityController) {
28             var result = document.getElementById("result");
29
30             var pass = document.getElementById("body");
31             // get the <th>skip</th> element
32             var group = accessibilityController.accessibleElementById("skip");
33             var titleUI = group.titleUIElement();
34             var allAttributes = "";
35             if (titleUI)
36                 allAttributes = titleUI.allAttributes();
37
38             // verify it has no title ui element           
39             if (!allAttributes) {
40                 result.innerText += "Test passed\n";
41             }
42             else {
43                  result.innerText += "Test failed\n";
44             }
45         }
46     </script>
47 </body>
48 </html>