blob: a31c3984e49aa063d6ea864016a6f15e62fbedce [file] [log] [blame]
<html>
<script src="../../resources/js-test-pre.js"></script>
<body>
<div id="result">
line 1
line 2
line 3
</div>
<script>
description("This test verifies we can set the selected text range on a non text control.");
if (window.accessibilityController) {
window.jsTestIsAsync = true;
var div = accessibilityController.accessibleElementById("result");
div.setSelectedTextRange(0,6);
shouldBecomeEqual("window.getSelection().toString()", "'line 1'", finishJSTest);
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>