Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / text-field-setvalue-crash.html
bloba5fa414e155afeb0cce437de064ade0fa6f0a887
1 <script>
2 if (window.testRunner)
3 testRunner.dumpAsText();
5 function test()
7 var emailID=document.apply.EmailAdd;
8 emailID.focus();
9 document.execCommand("InsertText", false, "aaa")
10 emailID.value="";
11 document.execCommand("InsertText", false, "aaa")
12 document.execCommand("Undo");
13 document.execCommand("Undo");
16 </script>
18 <BODY onload="test()">
19 <p>This test checks that undoing across a programmatic change to a
20 text field's value doesn't cause crashes or assertion failures. If
21 this test does not crash, it has passed.</p>
23 <form name="apply">
24 <input name="EmailAdd" type="text" onBlur="javascript:ValidateForm();">
25 </form>
27 </body>
28 </html>