5 testRunner.dumpEditingCallbacks();
7 function editingTest() {
8 frames['imageframe'].document.execCommand("Copy");
10 var s = window.getSelection();
11 var e = document.getElementById("dest");
13 document.execCommand("Paste");
18 border: 2px solid red;
24 border: 2px solid blue;
30 <p>This is an automatic test of copying an image document.</p>
31 <p>To perform this test manually, click once in the image frame, choose Edit -> Copy
32 then click in the red box and paste the image. If the image pastes successfully the
35 <iframe name="imageframe" src="../resources/abe.png" onload="editingTest()">
38 <div id="dest" class="editable" contenteditable="true"> </div>