Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / selection / removeAllRanges.html
1 <p>This tests Selection::removeAllRanges().</p>
2 <div id="div">This should not be selected.</div>
3
4 <script>
5 if (window.testRunner) {
6     window.testRunner.dumpEditingCallbacks();
7     window.testRunner.dumpAsText();
8 }
9 var sel = window.getSelection();
10 var div = document.getElementById("div");
11 div.focus();
12 document.execCommand("SelectAll");
13 sel.removeAllRanges();
14 </script>