4 if (window
.testRunner
) {
5 testRunner
.dumpAsText();
6 testRunner
.waitUntilDone();
8 window
.setTimeout(afterDelay
, 20);
11 function afterDelay() {
12 forCaret
= document
.getElementById("forCaret");
13 window
.getSelection().collapse(forCaret
, 0);
14 document
.execCommand("Delete");
15 if (window
.testRunner
) {
16 document
.body
.innerText
= document
.getElementById("description").innerText
+ "\n\n" + document
.getElementById("edit").innerHTML
;
17 testRunner
.notifyDone();
23 <body onLoad=
"runTest();">
24 <div id=
"description">This tests to make sure that placing the caret in an empty paragraph after a block image and pressing delete removes the empty paragraph. The editable region below should contain only an image followed by a caret.
</div>
25 <div id=
"edit" contentEditable=
"true"><img src=
"../resources/abe.png" style=
"display:block; padding: 3px;"><div id=
"forCaret"><br></div></div>