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