blob: f19a18ef940a70ddf71390f25fc1026365afb031 [file] [log] [blame]
<html>
<head>
<script>
function log(msg)
{
document.getElementById('console').appendChild(document.createTextNode(msg + '\n'));
}
function test()
{
if (window.layoutTestController)
layoutTestController.dumpAsText();
var sl = document.getElementById("sl");
sl.options.length="5";
if (sl.options.length == 5)
log("Test Passed");
else
log("Test Failed");
}
</script>
</head>
<body onload="test()">
This tests that setting the options collection length to a string representation of a number works.<br>
<select id="sl"><option>This option should be visible</select>
<pre id="console"></pre>
</body>
</html>