blob: dadbebe70f362b0efa16b7a920629bce71cb0a55 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../fast/js/resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description('Tests that setting the .length of an HTMLSelectElement correctly creates and destroys options.');
var sel = document.createElement('select');
document.body.appendChild(sel);
shouldBe('sel.length', '0');
sel.length = 200;
shouldBe('sel.length', '200');
sel.length = 100;
shouldBe('sel.length', '100');
sel.length = 180;
shouldBe('sel.length', '180');
</script>
<script src="../../fast/js/resources/js-test-post.js"></script>
</body>
</html>