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