| <html> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| </script> |
| <body> |
| |
| <div id="result"></div> |
| |
| <!-- This test checks that an element will expose AXPress as an action if it listens for onClick --> |
| <div id="onclick" onclick="alert('hello');">this is an on click handler</div> |
| |
| <script> |
| if (window.accessibilityController) { |
| var result = document.getElementById("result"); |
| |
| var textElement = accessibilityController.accessibleElementById('onclick'); |
| if (textElement.isPressActionSupported()) { |
| result.innerText += "Test passed\n"; |
| } |
| else { |
| result.innerText += "Test failed\n"; |
| } |
| } |
| </script> |
| </body> |
| </html> |