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> | 6 <body> |
7 | 7 |
8 <!-- this test makes sure that the labeled by aria attributes does not start
climbing out of itself and | 8 <!-- this test makes sure that the labeled by aria attributes does not start
climbing out of itself and |
9 appending on other elements as its own description --> | 9 appending on other elements as its own description --> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 <li id="item7" role="listitem" tabindex="-1">Item Seven</li> | 25 <li id="item7" role="listitem" tabindex="-1">Item Seven</li> |
26 </ul> | 26 </ul> |
27 | 27 |
28 <div id="result"></div> | 28 <div id="result"></div> |
29 | 29 |
30 <script> | 30 <script> |
31 if (window.accessibilityController) { | 31 if (window.accessibilityController) { |
32 var labeledItem = document.getElementById("rep"); | 32 var labeledItem = document.getElementById("rep"); |
33 labeledItem.focus(); | 33 labeledItem.focus(); |
34 var result = document.getElementById("result"); | 34 var result = document.getElementById("result"); |
35 if ( accessibilityController.focusedElement.deprecatedDescription ==
"AXDescription: Reply Item Five" ) { | 35 if ( accessibilityController.focusedElement.name == "Reply Item Five
" ) { |
36 result.innerText = "Passed"; | 36 result.innerText = "Passed"; |
37 } | 37 } |
38 else { | 38 else { |
39 result.innerText = "Failed. Result ==" + accessibilityController.
focusedElement.deprecatedDescription + "=="; | 39 result.innerText = "Failed. Result ==" + accessibilityController.
focusedElement.name + "=="; |
40 } | 40 } |
41 } | 41 } |
42 </script> | 42 </script> |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |