Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-help.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script src="../resources/accessibility-helper.js"></script>
6 </head>
7 <body id="body">
8 <div id="content">
9 <div id="button" tabindex=0 role="button" aria-label="title" aria-help="click here">
10 button
11 </div>
12 </div>
13 <p id="description"></p>
14 <div id="console"></div>
15
16 <script>
17
18     description("This tests that aria-help attribute works as expected.");
19
20     if (window.accessibilityController) {
21         document.getElementById("button").focus();
22         var axButton = accessibilityController.focusedElement;
23         shouldBeEqualToString("platformValueForW3CName(axButton)", "title");
24         shouldBeEqualToString("platformValueForW3CDescription(axButton)", "click here");
25
26         document.getElementById("content").style.visibility = "hidden";
27     }
28 </script>
29
30 <script src="../resources/js-test-post.js"></script>
31 </body>
32 </html>