OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 function test() { | 4 function test() { |
5 if (window.testRunner) | 5 if (window.testRunner) |
6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
7 setTimeout("test2()", 100); | 7 setTimeout("test2()", 100); |
8 } | 8 } |
9 function test2() { | 9 function test2() { |
10 document.getElementById('sl').options[0] = new Option ( "This te
xt should fit in the list box", "1" ); | 10 document.getElementById('sl').options[0] = new Option ( "This te
xt should fit in the list box", "1" ); |
11 if (window.testRunner) | 11 if (window.testRunner) |
12 testRunner.notifyDone(); | 12 testRunner.notifyDone(); |
13 } | 13 } |
14 </script> | 14 </script> |
15 </head> | 15 </head> |
16 <body onload="test()"> | 16 <body onload="test()"> |
17 This tests that when a list box's options get updated, the list box will
recalculate its width, and relayout. | 17 This tests that when a list box's options get updated, the list box will
recalculate its width, and relayout. |
18 <br> | 18 <br> |
19 <select id="sl" multiple></select> | 19 <select id="sl" multiple></select> |
20 </body> | 20 </body> |
21 </html> | 21 </html> |
OLD | NEW |