Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / paste-1.html
blob3877e339894c6c94936fd9fbbc0f067d6ec55f40
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
5 function foo() {
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("Cut");
14 doc.execCommand("Paste");
15 if (window.testRunner)
16 window.testRunner.notifyDone();
18 if (window.testRunner)
19 window.testRunner.waitUntilDone();
20 </script>
22 <p>This tests cut/paste inside an editable iframe. You should see 'foo bar baz' below.</p>
23 <iframe src="../resources/contenteditable-iframe-src.html" onload="foo();"></iframe>