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