blob: 9441799a539de8e6aeef9d28f6d0406b8ed1a8cd [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function findUnknownChild(accessibilityObject) {
if (accessibilityObject.role == "AXRole: AXUnknown")
return accessibilityObject;
var count = accessibilityObject.childrenCount;
for (var i = 0; i < count; ++i) {
var child = findUnknownChild(accessibilityObject.childAtIndex(i));
if (child)
return child;
}
return null;
}
function runTest()
{
if (window.accessibilityController) {
document.body.focus();
shouldBeTrue("findUnknownChild(accessibilityController.focusedElement) == null");
}
}
</script>
</head>
<body id="body" onload="runTest()">
<iframe src="data:text/html,<body><button>Click me</button></body>"></iframe>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests accessibility objects with role 'unknown' are not being exposed.");
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>