| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script src="../resources/js-test.js"></script> |
| </head> |
| <body id="body"> |
| <input type="checkbox" id="item"><label for="item"> |
| This is a lot of repeated text that when a hit test is performed, will |
| return the corresponding checkbox control, because this text is only a label. |
| This is a lot of repeated text that when a hit test is performed, will |
| return the corresponding checkbox control, because this text is only a label. |
| This is a lot of repeated text that when a hit test is performed, will |
| return the corresponding checkbox control, because this text is only a label. |
| This is a lot of repeated text that when a hit test is performed, will |
| return the corresponding checkbox control, because this text is only a label. |
| This is a lot of repeated text that when a hit test is performed, will |
| return the corresponding checkbox control, because this text is only a label. |
| </label> |
| |
| <p id="description"></p> |
| <div id="console"></div> |
| |
| <script> |
| |
| description("This tests that a hit test on a label of a control will return the control (instead of nothing)."); |
| |
| if (window.accessibilityController) { |
| |
| var body = document.getElementById("body"); |
| body.focus(); |
| |
| var control = accessibilityController.focusedElement.elementAtPoint(30, 100); |
| |
| shouldBe("control.role", "'AXRole: AXCheckBox'"); |
| } |
| |
| </script> |
| |
| </body> |
| </html> |