Update device orientation & motion permission native SPI as per latest proposal
[WebKit-https.git] / LayoutTests / accessibility / aria-link-supports-press.html
1 <html>
2 <script>
3     if (window.testRunner)
4         testRunner.dumpAsText();
5 </script>
6 <body>
7 <div id="link" role="link" tabindex="0">Click</div>
8
9 <br>
10
11 <span id="result">To run this test outside of DRT, use the Accessibility Inspector to inspect the link above, and make sure AXPressed is listed as a supported action.</span>
12
13 <script>
14     if (window.accessibilityController) {
15         var link = document.getElementById("link");
16         var result = document.getElementById("result");
17         
18         link.focus();
19         var supportsAction = accessibilityController.focusedElement.isPressActionSupported();
20         if (supportsAction)
21             result.innerHTML = "SUCCESS! This test passes because the ARIA link above supports the press action.";
22         else
23             result.innerHTML = "FAIL! This test fails because the ARIA link above does NOT support the press action, but it should.";
24     }
25 </script>
26
27 </body>
28 </html>