blob: 239959b9bff3b6f2d8f3bc62b33faedbe1a81aee [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<p>This
paragraph
is
borked!</p>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests the ability to get element text for a specified range.");
if (window.accessibilityController) {
document.getElementById("body").focus();
var webArea = accessibilityController.focusedElement;
var paragraph = webArea.childAtIndex(0);
shouldBe("paragraph.stringForRange(0, 25)", "'This paragraph is borked!'");
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>