Index: LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.html |
diff --git a/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.html b/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.html |
index f6de9a7affbe9fd4fc52db886ee3c8608ca5bf89..2c3dcfdf07586185ae2446440b3ac4a7703095aa 100644 |
--- a/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.html |
+++ b/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex.html |
@@ -137,5 +137,10 @@ mySelect.options[1/0] = document.createElement("option"); |
shouldBe("mySelect.options.length", "10"); |
shouldBe("mySelect.selectedIndex", "-1"); |
+debug((++i) + ") trying to add a non-option element"); |
+shouldThrow("mySelect.options.add({})"); |
+shouldBe("mySelect.options.length", "10"); |
+shouldBe("mySelect.selectedIndex", "-1"); |
+ |
debug(""); |
</script> |