Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt

Issue 98783003: Make HTMLOptionsCollection report TypeErrors. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add TextTrackCue() exception handling test Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698