Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / undo / 4059423-1.html
blob976b55d02f3397293449f0c29e36293e90106c1f
1 <div id="edit" contentEditable="true">foo<br>bar</div>
3 <script>
4 if (window.testRunner)
5 window.testRunner.dumpAsText();
6 edit = document.getElementById("edit");
7 window.getSelection().collapse(edit, 0);
8 document.execCommand("SelectAll");
9 document.execCommand("InsertUnorderedList");
10 document.execCommand("Undo");
11 text = document.createTextNode("This tests for a crash when undoing and then redoing after some arbitrary DOM operations are performed that effect the Undo stack. The test should not crash.");
12 edit.innerHTML = "";
13 edit.appendChild(text);
14 document.execCommand("Undo");
15 document.execCommand("Redo");
16 </script>