1bd55bd1a0ec39b0f1a650b19af6ea95319fb4aa
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / aria-popup.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 <div id="button" role="button" aria-haspopup="true" tabindex="0" style="width:200px; border: outset 2px gray; padding:3px">Example</div>
9
10 <p id="description"></p>
11 <div id="console"></div>
12
13 <script>
14
15     description("This tests that when an ARIA button has aria-haspopup=true, it will be a popup button");
16
17     if (window.accessibilityController) {
18
19           document.getElementById("button").focus();
20           var button = accessibilityController.focusedElement;
21
22           shouldBe("button.role", "'AXRole: AXPopUpButton'");
23           shouldBe("button.isPressActionSupported()", "true");
24     }
25
26 </script>
27
28 <script src="../../../resources/js-test-post.js"></script>
29 </body>
30 </html>