Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / undo / 4059423-1.html
1 <div id="edit" contentEditable="true">foo<br>bar</div>
2
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>