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

Unified Diff: LayoutTests/fast/js/select-options-add-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/js/select-options-add-expected.txt
diff --git a/LayoutTests/fast/js/select-options-add-expected.txt b/LayoutTests/fast/js/select-options-add-expected.txt
index 6cc8c71ea8e15e19a9451eda6c225c3bd29ae047..e3d5b8e0b11f926b01dc781adf480be07e19a04c 100644
--- a/LayoutTests/fast/js/select-options-add-expected.txt
+++ b/LayoutTests/fast/js/select-options-add-expected.txt
@@ -29,47 +29,47 @@ PASS select1.options[2].value is '3'
PASS select1.options[2].textContent is 'C'
1.4 Add a non-Option element
-PASS select1.options.add(option1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select1.options.add(option1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select1.options.length is 3
PASS select1.selectedIndex is 0
1.5 Add a non-element (string)
-PASS select1.options.add(option1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select1.options.add(option1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select1.options.length is 3
PASS select1.selectedIndex is 0
1.6 Add a non-element (number)
-PASS select1.options.add(option1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select1.options.add(option1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select1.options.length is 3
PASS select1.selectedIndex is 0
1.7 Add a non-element (boolean)
-PASS select1.options.add(option1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select1.options.add(option1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select1.options.length is 3
PASS select1.selectedIndex is 0
1.8 Add undefined
-PASS select1.options.add(option1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select1.options.add(option1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select1.options.length is 3
PASS select1.selectedIndex is 0
1.9 Add null
-PASS select1.options.add(option1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select1.options.add(option1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select1.options.length is 3
PASS select1.selectedIndex is 0
1.10 Add negative infinity
-PASS select1.options.add(option1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select1.options.add(option1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select1.options.length is 3
PASS select1.selectedIndex is 0
1.11 Add NaN
-PASS select1.options.add(option1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select1.options.add(option1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select1.options.length is 3
PASS select1.selectedIndex is 0
1.12 Add positive infinity
-PASS select1.options.add(option1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select1.options.add(option1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select1.options.length is 3
PASS select1.selectedIndex is 0
@@ -178,47 +178,47 @@ PASS select2.options.length is 10
PASS select2.selectedIndex is 4
2.12 Add a non-Option element
-PASS select2.options.add(option2, 1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select2.options.add(option2, 1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select2.options.length is 10
PASS select2.selectedIndex is 4
2.13 Add a non-element (string)
-PASS select2.options.add(option2, 1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select2.options.add(option2, 1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select2.options.length is 10
PASS select2.selectedIndex is 4
2.14 Add a non-element (number)
-PASS select2.options.add(option2, 1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select2.options.add(option2, 1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select2.options.length is 10
PASS select2.selectedIndex is 4
2.15 Add a non-element (boolean)
-PASS select2.options.add(option2, 1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select2.options.add(option2, 1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select2.options.length is 10
PASS select2.selectedIndex is 4
2.16 Add undefined
-PASS select2.options.add(option2, 1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select2.options.add(option2, 1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select2.options.length is 10
PASS select2.selectedIndex is 4
2.17 Add null
-PASS select2.options.add(option2, 1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select2.options.add(option2, 1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select2.options.length is 10
PASS select2.selectedIndex is 4
2.18 Add negative infinity
-PASS select2.options.add(option2, 1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select2.options.add(option2, 1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select2.options.length is 10
PASS select2.selectedIndex is 4
2.19 Add NaN
-PASS select2.options.add(option2, 1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select2.options.add(option2, 1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select2.options.length is 10
PASS select2.selectedIndex is 4
2.20 Add positive infinity
-PASS select2.options.add(option2, 1) threw exception TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+PASS select2.options.add(option2, 1) threw exception TypeError: Failed to execute 'add' on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement..
PASS select2.options.length is 10
PASS select2.selectedIndex is 4

Powered by Google App Engine
This is Rietveld 408576698