4 if (window.testRunner)
\r
6 testRunner.dumpAsText();
\r
7 testRunner.waitUntilDone();
\r
9 window.onload = function ()
\r
11 var element = document.getElementById("test");
\r
12 element.onchange = function() { element.size = 30; }
\r
14 if (window.testRunner)
\r
16 // This triggers selection of second option in the select and press Enter.
\r
17 eventSender.keyDown("e");
\r
18 eventSender.keyDown("\r", []);
\r
19 // This triggers repaint.
\r
20 document.body.offsetTop;
\r
22 document.getElementById("log").innerHTML = "<span style='color: green;'>PASS:</span> Did not crash";
\r
23 testRunner.notifyDone();
\r
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.
\r
30 <p id="log"><span style='color: red;'>FAIL:</span> Did not complete test or not running inside DumpRenderTree</p>
\r
32 <option selected>abcd</option>
\r
33 <option>efgh</option>
\r