blob: 7ce42bf1572d105dbb1f5ffaebc576e8b1fbb89b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../fast/js/resources/js-test-pre.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>
<script src="../fast/js/resources/js-test-post.js"></script>
</body>
</html>