Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / removeAllRanges.html
bloba2afc5dcba8c773ae0407f27e728d44606bab02a
1 <p>This tests Selection::removeAllRanges().</p>
2 <div id="div">This should not be selected.</div>
4 <script>
5 if (window.testRunner) {
6 window.testRunner.dumpEditingCallbacks();
7 window.testRunner.dumpAsText();
9 var sel = window.getSelection();
10 var div = document.getElementById("div");
11 div.focus();
12 document.execCommand("SelectAll");
13 sel.removeAllRanges();
14 </script>