blob: d6ad9187930fd8b04a667494ca3602cdc3915ddc [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../fast/js/resources/js-test-pre.js"></script>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
</head>
<body>
<div tabindex=0 id="divgroup" summary="Hello">
<span>
<span>
Text
</span>
</span>
</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This test that a parent object has help text, it does not cause intermediate, unknown objects to also be returned through accessibility. The test is that the child of the div is the 'Text' object and not the span objects.");
if (window.accessibilityController) {
document.getElementById("divgroup").focus();
var divgroup = accessibilityController.focusedElement;
shouldBe("divgroup.childAtIndex(0).role", "'AXRole: AXStaticText'");
}
</script>
<script src="../../../fast/js/resources/js-test-post.js"></script>
</body>
</html>