blob: 1696d88bf8e0ba661db0fcbcf1b34e77816c12a2 [file] [log] [blame]
<html>
<head>
<script>
function runTest() {
if (window.testRunner)
window.testRunner.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>