blob: 04a9d9a8aa3cc84f78dad541afd6c965fc72f5cd [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<div id="container">
<input type="submit" value="Submit">
</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that we don't crash in search predicate function if startObject has null parent.");
if (window.accessibilityController) {
document.getElementById("container").focus();
var containerElement = accessibilityController.focusedElement;
var startElement = accessibilityController.rootElement;
// Make sure we don't crash
var linkCount = containerElement.uiElementCountForSearchPredicate(startElement, false, "AXLinkSearchKey", "", false);
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>