blob: aebc7c9649ec72e1c8e12d03a300c1bbae8506cf [file] [log] [blame]
<p>This tests Selection::removeAllRanges().</p>
<div id="div">This should not be selected.</div>
<script>
if (window.layoutTestController) {
window.layoutTestController.dumpEditingCallbacks();
window.layoutTestController.dumpAsText();
}
var sel = window.getSelection();
var div = document.getElementById("div");
div.focus();
document.execCommand("SelectAll");
sel.removeAllRanges();
</script>