2 if (window.layoutTestController)
3 layoutTestController.dumpEditingCallbacks();
7 var sel = frame.getSelection();
8 var doc = frame.document;
10 sel.setPosition(doc.body, 0);
11 doc.execCommand("InsertText", false, "foo bar baz");
12 sel.modify("extend", "backward", "word");
13 doc.execCommand("Copy");
14 doc.execCommand("Delete");
15 doc.execCommand("Paste");
16 if (window.layoutTestController)
17 window.layoutTestController.notifyDone();
20 if (window.layoutTestController)
21 window.layoutTestController.waitUntilDone();
23 <p>This tests copy/delete/paste inside an editable iframe. You should see 'foo bar baz' below.</p>
24 <iframe src="../resources/contenteditable-iframe-src.html" onload="runTest();"></iframe>