OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body id="body"> | 6 <body id="body"> |
7 | 7 |
8 <h3 role="presentation"> | 8 <h3 role="none"> |
9 <a href="#">Link</a> and text | 9 <a href="#">Link</a> and text |
10 </h3> | 10 </h3> |
11 | 11 |
12 <p id="description"></p> | 12 <p id="description"></p> |
13 <div id="console"></div> | 13 <div id="console"></div> |
14 | 14 |
15 <script> | 15 <script> |
16 | 16 |
17 description("This tests that the aria 'presentation' role works by successfu
lly removing the element from the AX tree."); | 17 description("This tests that the aria 'none' role works by successfully remo
ving the element from the AX tree."); |
18 | 18 |
19 if (window.accessibilityController) { | 19 if (window.accessibilityController) { |
20 | 20 |
21 var body = document.getElementById("body"); | 21 var body = document.getElementById("body"); |
22 body.focus(); | 22 body.focus(); |
23 | 23 |
24 var firstChild = accessibilityController.focusedElement.childAtIndex(0
); | 24 var firstChild = accessibilityController.focusedElement.childAtIndex(0
); |
25 shouldBe("firstChild.role", "'AXRole: AXLink'"); | 25 shouldBe("firstChild.role", "'AXRole: AXLink'"); |
26 } | 26 } |
27 | 27 |
28 </script> | 28 </script> |
29 | 29 |
30 </body> | 30 </body> |
31 </html> | 31 </html> |
OLD | NEW |