OLD | NEW |
1 <html> | 1 <html> |
2 <script> | 2 <script> |
3 if (window.testRunner) | 3 if (window.testRunner) |
4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
5 </script> | 5 </script> |
6 <body id="body"> | 6 <body id="body"> |
7 | 7 |
8 <!-- This test makes sure that tables that are not exposed as tables do not
have title ui elements incorrectly set --> | 8 <!-- This test makes sure that tables that are not exposed as tables do not
have title ui elements incorrectly set --> |
9 | 9 |
10 <TABLE> | 10 <TABLE> |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 | 25 |
26 <script> | 26 <script> |
27 if (window.accessibilityController) { | 27 if (window.accessibilityController) { |
28 var result = document.getElementById("result"); | 28 var result = document.getElementById("result"); |
29 | 29 |
30 var pass = document.getElementById("body"); | 30 var pass = document.getElementById("body"); |
31 body.focus(); | 31 body.focus(); |
32 // get the <th>skip</th> element | 32 // get the <th>skip</th> element |
33 var group = accessibilityController.focusedElement.childAtIndex(5); | 33 var group = accessibilityController.focusedElement.childAtIndex(5); |
34 var titleUI = group.deprecatedTitleUIElement(); | 34 var titleUI = group.nameElementAtIndex(0); |
35 var allAttributes = ""; | 35 var allAttributes = ""; |
36 if (titleUI) | 36 if (titleUI) |
37 allAttributes = titleUI.allAttributes(); | 37 allAttributes = titleUI.allAttributes(); |
38 | 38 |
39 // verify it has no title ui element | 39 // verify it has no title ui element |
40 if (!allAttributes) { | 40 if (!allAttributes) { |
41 result.innerText += "Test passed\n"; | 41 result.innerText += "Test passed\n"; |
42 } | 42 } |
43 else { | 43 else { |
44 result.innerText += "Test failed\n"; | 44 result.innerText += "Test failed\n"; |
45 } | 45 } |
46 } | 46 } |
47 </script> | 47 </script> |
48 </body> | 48 </body> |
49 </html> | 49 </html> |
OLD | NEW |