6 testRunner
.waitUntilDone();
8 setTimeout('addLongOption();', 100);
10 function addLongOption()
12 var newOpt
= document
.createElement("option");
13 newOpt
.appendChild(document
.createTextNode("I require more room"));
14 var sl
= document
.getElementById("t");
15 sl
.appendChild(newOpt
);
17 if (window
.testRunner
)
18 testRunner
.notifyDone();
22 <body onload=
"test()">
23 This tests that when an option is dynamically added to a menu list, and it is too long for the current width,
<br>
24 that the select automatically recalculates the correct width.
<br>
26 <option id=
"short">Short
</option>
27 <option id=
"medium">Medium
</option>