4 testRunner
.dumpAsText();
8 <div id=
"result"></div>
10 <!-- This test checks that an element will expose AXPress as an action if it listens for onClick -->
11 <div onclick=
"alert('hello');">this is an on click handler
</div>
14 if (window
.accessibilityController
) {
15 var result
= document
.getElementById("result");
17 var body
= document
.getElementById("body");
19 var focusedElement
= accessibilityController
.focusedElement
;
20 var textElement
= focusedElement
.childAtIndex(0).childAtIndex(0);
22 if (textElement
.isPressActionSupported()) {
23 result
.innerText
+= "Test passed\n";
26 result
.innerText
+= "Test failed\n";