Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / pasteboard / undoable-fragment-removes.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This is a testcase for 8193, hitting an assert inside RemoveNodeCommand on Undo Paste.  Both editable regions below should look the same after the test.</p>
6 <hr>
7 <div style="border: 1px solid black;" id="copy" contenteditable="true">
8 <div>foo</div><div>bar</div></div>
9 <div style="border: 1px solid black;" id="paste" contenteditable="true"><br></div>
10
11 <script>
12 var c = document.getElementById("copy");
13 var p = document.getElementById("paste");
14 var s = window.getSelection();
15 s.collapse(c, 0);
16 document.execCommand("SelectAll");
17 document.execCommand("Copy");
18 s.collapse(p, 0);
19 document.execCommand("Paste");
20 document.execCommand("Undo");
21 </script>