5 window.testRunner.dumpAsText();
6 img = document.getElementById("img");
7 s = window.getSelection();
9 document.execCommand("Delete");
10 if (window.testRunner)
11 document.body.innerText = document.getElementById("div").innerHTML + "\n\nSelection: [" + s.anchorNode + ", " + s.anchorOffset + "]";
15 <body onLoad="runTest();">
16 <div>This is a test for <a href="https://bugs.webkit.org/show_bug.cgi?id=25439">https://bugs.webkit.org/show_bug.cgi?id=25439</a>.</div>
17 <div>This tests placing the caret just before a block image and pressing delete. The image should move up one line.</div>
18 <div id="div" contentEditable="true"><br><img id="img" style="display:block;" src="../resources/abe.png"></div>