blob: a5fa414e155afeb0cce437de064ade0fa6f0a887 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpAsText();
function test()
{
var emailID=document.apply.EmailAdd;
emailID.focus();
document.execCommand("InsertText", false, "aaa")
emailID.value="";
document.execCommand("InsertText", false, "aaa")
document.execCommand("Undo");
document.execCommand("Undo");
}
</script>
<BODY onload="test()">
<p>This test checks that undoing across a programmatic change to a
text field's value doesn't cause crashes or assertion failures. If
this test does not crash, it has passed.</p>
<form name="apply">
<input name="EmailAdd" type="text" onBlur="javascript:ValidateForm();">
</form>
</body>
</html>