blob: 369463e7224eec773b685a0585f654a039fe905e [file] [log] [blame]
<p>This tests for a crash when performing selectLine: inside an empty editable div. It cannot be run manually.</p>
<div id="div" contenteditable="true"></div>
<script>
if (window.layoutTestController)
window.layoutTestController.dumpAsText();
var div = document.getElementById("div");
var sel = window.getSelection();
sel.setPosition(div, 0);
if (window.layoutTestController)
layoutTestController.execCommand("SelectLine");
</script>