| <div id="edit" contentEditable="true">foo<br>bar</div> |
| window.testRunner.dumpAsText(); |
| edit = document.getElementById("edit"); |
| window.getSelection().setPosition(edit, 0); |
| document.execCommand("SelectAll"); |
| document.execCommand("InsertUnorderedList"); |
| document.execCommand("Undo"); |
| 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."); |
| document.execCommand("Undo"); |
| document.execCommand("Redo"); |