6 document
.getElementById('console').appendChild(document
.createTextNode(msg
+ '\n'));
11 if (window
.layoutTestController
)
12 layoutTestController
.dumpAsText();
14 var sl
= document
.getElementById("sl");
15 sl
.options
.length
="5";
16 if (sl
.options
.length
== 5)
23 <body onload=
"test()">
24 This tests that setting the options collection length to a string representation of a number works.
<br>
25 <select id=
"sl"><option>This option should be visible
</select>
26 <pre id=
"console"></pre>