| 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
|
|
|
|
|