blob: 2a549a376299a7ea36a647c914dccc2c13beb19b [file]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../resources/accessibility-helper.js"></script>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<div id="text" tabindex="0">text block</div>
<script>
var output = "This tests basic LengthForTextMarkerRange.\n\n";
if (window.accessibilityController) {
var root = accessibilityController.rootElement;
var textMarkerRange = root.textMarkerRangeForElement(accessibilityController.accessibleElementById("text"));
output += expect("root.textMarkerRangeLength(textMarkerRange)", "10");
debug(output);
}
</script>
</body>
</html>