blob: aec3a99422de0420baffa98e6244d3fb8b839bb6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<a id="link" href="">
Shop<img alt="">
</a>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that boundsForRange with invalid text marker is not causing crash.");
if (window.accessibilityController) {
var textChild = accessibilityController.accessibleElementById("link").childAtIndex(0);
// Make sure calling boundsForRange won't cause crash.
var bounds = textChild.boundsForRange(0, 5);
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>