Index: LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple.html |
diff --git a/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple.html b/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple.html |
index dba6a7dd6a1e317c0635887024287c2e4ac62a5d..d1430b9dcba91e46954391cb0bf7d829d77d282e 100644 |
--- a/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple.html |
+++ b/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple.html |
@@ -14,7 +14,7 @@ reset(mySelect); |
var i = 0; |
debug((++i) + ") setting length to a negative length"); |
-shouldThrow("mySelect.options.length = -1;"); |
+mySelect.options.length = -1; |
shouldBe("mySelect.options.length", "2"); |
shouldBe("mySelect.selectedIndex", "0"); |
@@ -137,5 +137,10 @@ mySelect.options[1/0] = document.createElement("option"); |
shouldBe("mySelect.options.length", "10"); |
shouldBe("mySelect.selectedIndex", "0"); |
+debug((++i) + ") setting length to a value greater than 10000"); |
+mySelect.options.length = 10001; |
+shouldBe("mySelect.options.length", "10"); |
+shouldBe("mySelect.selectedIndex", "0"); |
+ |
debug(""); |
</script> |