4 // CAUTION: There must be no newline at the end of this test file.
5 // An additional text node after the body would prevent the crash.
10 testRunner
.dumpAsText();
11 document
.getSelection().selectAllChildren(document
.body
);
12 document
.getSelection().collapseToEnd();
13 document
.execCommand("Delete");
15 if (document
.body
.innerText
=== "Test for deletion that involves paragraph merging at the very end of a document.\n\nTEST HAS NOT RUN YET\n\nThe test puts the cursor below this paragraph and performs a delete.")
16 result
= "PASS: Backspace deleted a newline and did not cause a crash.";
18 result
= "FAIL: The document's innerText is incorrect.";
19 document
.getElementById("result").innerHTML
= result
;
24 <body contenteditable
onload=
"test()">
25 <p>Test for deletion that involves paragraph merging at the very end of a document.
</p>
26 <p id=
"result">TEST HAS NOT RUN YET
</p>
27 <pre>The test puts the cursor below this paragraph and performs a delete.
</pre><br></body>