Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / element-haspopup.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 <a href="#" aria-haspopup="true" tabindex="0" id="link1">Link 1</a>
9 <a href="#" aria-haspopup="false" tabindex="0" id="link2">Link 2</a>
10
11 <p id="description"></p>
12 <div id="console"></div>
13
14 <script>
15
16     description("This tests that an element will report that it has a popup correctly.");
17
18     if (window.accessibilityController) {
19
20         document.getElementById("link1").focus();
21         shouldBe("accessibilityController.focusedElement.hasPopup", "true");
22
23         document.getElementById("link2").focus();
24         shouldBe("accessibilityController.focusedElement.hasPopup", "false");
25     }
26
27 </script>
28
29 <script src="../resources/js-test-post.js"></script>
30 </body>
31 </html>