| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <div id="textrole" tabindex=0 role="text" aria-label="all at once"> |
| <a href="#">more test</a> |
| description("This tests that you can set an ARIA text role and that it will not have children through hit testing"); |
| if (window.accessibilityController) { |
| document.getElementById("textrole").focus(); |
| var textrole = accessibilityController.focusedElement; |
| shouldBe("textrole.role", "'AXRole: AXStaticText'"); |
| shouldBe("textrole.stringValue", "'AXValue: all at once'"); |
| // now check the hit-testing |
| var x = textrole.clickPointX; |
| var y = textrole.clickPointY; |
| shouldBe("textrole.elementAtPoint(x, y).isEqual(textrole)", "true"); |
| <script src="../resources/js-test-post.js"></script> |