blob: 483cff43898a9040ff51c71660220a52f93aedc4 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body id="body">
<textarea id="textarea" tabindex=0></textarea>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that the AXSelectedTextRange for a text area will be 0, 0 instead of nil.");
if (window.accessibilityController) {
// this text field should be required.
document.getElementById("textarea").focus();
var obj = accessibilityController.focusedElement;
shouldBe("obj.selectedTextRange", "'{0, 0}'");
}
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>