blob: e57411afce7452b3ceaad0b2df3a898c2b7d4e84 [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.testRunner)
window.testRunner.dumpAsText();
var div = document.getElementById("div");
var sel = window.getSelection();
sel.setPosition(div, 0);
if (window.testRunner)
testRunner.execCommand("SelectLine");
</script>