WebCore:
[WebKit-https.git] / LayoutTests / editing / selection / select-line.html
1 <p>This tests for a crash when performing selectLine: inside an empty editable div.  It cannot be run manually.</p>
2 <div id="div" contenteditable="true"></div>
3
4 <script>
5 if (window.layoutTestController)
6     window.layoutTestController.dumpAsText();
7     
8 var div = document.getElementById("div");
9 var sel = window.getSelection();
10
11 sel.setPosition(div, 0);
12 document.execCommand("SelectLine");
13 </script>