1 <div id="edit" contentEditable="true">foo<br>bar</div>
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.");
13 edit.appendChild(text);
14 document.execCommand("Undo");
15 document.execCommand("Redo");