Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / select-onchange-crash.html
blob1fa21d75da030f0483d4f94b633064415ae59621
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
9 window.onload = function ()
11 var element = document.getElementById("test");
12 element.onchange = function() { element.size = 30; }
13 element.focus();
14 if (window.testRunner)
16 // This triggers selection of second option in the select and press Enter.
17 eventSender.keyDown("e");
18 eventSender.keyDown("\r", []);
19 // This triggers repaint.
20 document.body.offsetTop;
22 document.getElementById("log").innerHTML = "<span style='color: green;'>PASS:</span> Did not crash";
23 testRunner.notifyDone();
26 </script>
27 </head>
28 <body>
29 This test is to ensure that we do not crash when onchange handler changes the select from a menu list to a list box.
30 <p id="log"><span style='color: red;'>FAIL:</span> Did not complete test or not running inside DumpRenderTree</p>
31 <select id="test">
32 <option selected>abcd</option>
33 <option>efgh</option>
34 </select>
35 </body>
36 </html>