<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> |