1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../fast/js/resources/js-test-pre.js"></script>
7 <input type="checkbox" id="item"><label for="item">
8 This is a lot of repeated text that when a hit test is performed, will
9 return the corresponding checkbox control, because this text is only a label.
10 This is a lot of repeated text that when a hit test is performed, will
11 return the corresponding checkbox control, because this text is only a label.
12 This is a lot of repeated text that when a hit test is performed, will
13 return the corresponding checkbox control, because this text is only a label.
14 This is a lot of repeated text that when a hit test is performed, will
15 return the corresponding checkbox control, because this text is only a label.
16 This is a lot of repeated text that when a hit test is performed, will
17 return the corresponding checkbox control, because this text is only a label.
20 <p id="description"></p>
21 <div id="console"></div>
25 description("This tests that a hit test on a label of a control will return the control (instead of nothing).");
27 if (window.accessibilityController) {
29 var body = document.getElementById("body");
32 var control = accessibilityController.focusedElement.elementAtPoint(30, 100);
34 shouldBe("control.role", "'AXRole: AXCheckBox'");
39 <script src="../fast/js/resources/js-test-post.js"></script>