Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / paste-2.html
blob5387cf9a50a06a4e00a3ec5d8499ea662af0df10
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
5 function runTest() {
6 var frame = frames[0];
7 var sel = frame.getSelection();
8 var doc = frame.document;
10 sel.collapse(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.testRunner)
17 window.testRunner.notifyDone();
20 if (window.testRunner)
21 window.testRunner.waitUntilDone();
22 </script>
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>