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="../fast/js/resources/js-test-pre.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 <div id="button" tabindex=0 role="button" aria-label="title" aria-help="click he
re"> | 8 <div id="button" tabindex=0 role="button" aria-label="title" aria-help="click he
re"> |
9 button | 9 button |
10 </div> | 10 </div> |
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 aria-help attribute works as expected."); | 17 description("This tests that aria-help attribute works as expected."); |
18 | 18 |
19 if (window.accessibilityController) { | 19 if (window.accessibilityController) { |
20 | 20 |
21 document.getElementById("button").focus(); | 21 document.getElementById("button").focus(); |
22 var button = accessibilityController.focusedElement; | 22 var button = accessibilityController.focusedElement; |
23 shouldBe("button.helpText", "'AXHelp: click here'"); | 23 shouldBe("button.helpText", "'AXHelp: click here'"); |
24 } | 24 } |
25 | 25 |
26 </script> | 26 </script> |
27 | 27 |
28 </body> | 28 </body> |
29 </html> | 29 </html> |
OLD | NEW |