Index: LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt |
diff --git a/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt b/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt |
index e620f940af4144272dd4680863b9c5b48c3a60c9..a8be6b3d48e67d53a8ac4054b6ac65cf9a9ed009 100644 |
--- a/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt |
+++ b/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt |
@@ -57,7 +57,7 @@ PASS mySelect.selectedIndex is -1 |
PASS mySelect.options.length is 10 |
PASS mySelect.selectedIndex is -1 |
19) trying to set an element that's not an option: select element |
-PASS mySelect.options[10] = mySelect; threw exception TypeMismatchError: Failed to set the '10' property on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement.. |
+PASS mySelect.options[10] = mySelect; threw exception TypeError: Failed to set the '10' property on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement.. |
PASS mySelect.options.length is 10 |
PASS mySelect.selectedIndex is -1 |
20) trying to set a option element using an invalid index: negative infinity |
@@ -69,6 +69,10 @@ PASS mySelect.selectedIndex is -1 |
22) trying to set a option element using an invalid index: positive infinity |
PASS mySelect.options.length is 10 |
PASS mySelect.selectedIndex is -1 |
+23) trying to add a non-option element |
+PASS mySelect.options.add({}) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement.. |
+PASS mySelect.options.length is 10 |
+PASS mySelect.selectedIndex is -1 |
PASS successfullyParsed is true |