6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
9 window
.onload = function ()
11 var element
= document
.getElementById("test");
12 element
.onchange = function() { element
.size
= 30; }
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();
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>
32 <option selected
>abcd
</option>