Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / popup-button-title.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <p><a id="link" role="button" aria-owns="popup" aria-haspopup="true" tabindex="0" href="#">Click me</a></p>
9
10 <p id="description"></p>
11 <div id="console"></div>
12
13 <script>
14
15     description("This tests that a popup button will return the text under the element for its title.");
16
17     if (window.accessibilityController) {
18         document.getElementById("link").focus();
19         var element = accessibilityController.focusedElement;
20
21         // The element should not be ignored (it should be a group)
22         shouldBe("element.title", "'AXTitle: Click me'");
23     }
24
25 </script>
26
27 <script src="../resources/js-test-post.js"></script>
28 </body>
29 </html>