blob: 3a49d32ad2745e5a4449ade03b5dc07fd8528c2f [file] [log] [blame]
if (window.testRunner)
<div id="link" role="link" tabindex="0">Click</div>
<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>
if (window.accessibilityController) {
var link = document.getElementById("link");
var result = document.getElementById("result");
var supportsAction = accessibilityController.focusedElement.isPressActionSupported();
if (supportsAction)
result.innerHTML = "SUCCESS! This test passes because the ARIA link above supports the press action.";
result.innerHTML = "FAIL! This test fails because the ARIA link above does NOT support the press action, but it should.";