4 testRunner
.dumpAsText();
7 <div id=
"link" role=
"link" tabindex=
"0">Click
</div>
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>
14 if (window
.accessibilityController
) {
15 var link
= document
.getElementById("link");
16 var result
= document
.getElementById("result");
19 var supportsAction
= accessibilityController
.focusedElement
.isPressActionSupported();
21 result
.innerHTML
= "SUCCESS! This test passes because the ARIA link above supports the press action.";
23 result
.innerHTML
= "FAIL! This test fails because the ARIA link above does NOT support the press action, but it should.";