Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / label-for-control-hittest.html
blobf5afe3768b15196cbcb8d8b9f1177a3b2b4d9210
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body id="body">
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.
18 </label>
20 <p id="description"></p>
21 <div id="console"></div>
23 <script>
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");
30 body.focus();
32 var control = accessibilityController.focusedElement.elementAtPoint(30, 100);
34 shouldBe("control.role", "'AXRole: AXCheckBox'");
37 </script>
39 </body>
40 </html>