blob: fb8ae56a89f09e4c5f7939e137d829190fad240c [file] [log] [blame]
<html>
<head>
<script>
function runTest() {
if (window.layoutTestController)
window.layoutTestController.dumpAsText();
div = document.getElementById("div");
div.focus();
document.execCommand("SelectAll");
document.execCommand("FormatBlock", false, "<pre>");
document.body.innerText = document.getElementById("description").innerText + "\n" + document.getElementById("div").innerHTML;
}
</script>
</head>
<body onLoad="runTest()"><div id="description">This tests to make sure an ASSERT doesn't fire when performing a FormatBlock operation on a selection that ends just after a horizontal rule that is the last element in the document. The test should not assert. </div><div id="div" contentEditable="true"><hr></div></body></html>