| <title>Undo crash</title> |
| To run this test manually, type some text in the input field, then click the "Crash me" button. |
| <input id="testinput" type="text"></input> |
| <input id='testbutton' type="button" value="Crash me" onclick="crash()"> |
| document.getElementById('testinput').focus(); |
| document.execCommand('InsertText', false, 'b'); |
| document.execCommand('InsertText', false, 'l'); |
| document.execCommand('InsertText', false, 'a'); |
| document.execCommand('InsertText', false, 'h'); |
| var button = document.getElementById('testbutton'); |
| eventSender.mouseMoveTo(button.offsetLeft + 10, button.offsetTop + 5) |
| var elem = document.getElementById('testinput'); |
| elem.style.display = 'none'; |
| document.execCommand('undo'); |
| var li = document.createElement("li"); |
| li.appendChild(document.createTextNode(str)); |
| var console = document.getElementById("console"); |