Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / textfield-onchange-deletion.html
blobb8d68dfd73b34104aa74a8d3ecce10063e545c6b
1 <html>
2 <script>
3 function test() {
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
8 setTimeout(test2, 0);
10 function test2() {
11 document.getElementById('tf').focus();
12 eventSender.keyDown('a');
13 eventSender.keyDown("\r", null);
14 if (window.testRunner)
15 testRunner.notifyDone();
17 function test3()
19 document.getElementById('tf').style.display = "none";
21 function log(msg) {
22 var res = document.getElementById('res');
23 res.innerHTML = res.innerHTML + msg + "<br>";
26 </script>
27 <body onload="test()">
28 This tests that when the onchange event handler causes the renderer to be deleted, we don't crash.<br>
29 To run this test manually, type a character in the field and hit enter.<br>
30 <input id="tf" onchange="test3()">
31 <br>
32 <div id="res"></div>
33 </body>
34 </html>