Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / aria-link-supports-press.html
blob3a49d32ad2745e5a4449ade03b5dc07fd8528c2f
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>
9 <br>
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>
13 <script>
14 if (window.accessibilityController) {
15 var link = document.getElementById("link");
16 var result = document.getElementById("result");
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.";
25 </script>
27 </body>
28 </html>