29 lines
660 B
HTML
29 lines
660 B
HTML
<!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>
|