| OLD | NEW |
| 1 | 1 |
| 2 1) setting length to a negative length | 2 1) setting length to a negative length |
| 3 PASS mySelect.options.length = -1; threw exception IndexSizeError: Failed to set
the 'length' property on 'HTMLOptionsCollection': The value provided (-1) is ne
gative. Lengths must be greater than or equal to 0.. | |
| 4 PASS mySelect.options.length is 2 | 3 PASS mySelect.options.length is 2 |
| 5 PASS mySelect.selectedIndex is 1 | 4 PASS mySelect.selectedIndex is 1 |
| 6 2) setting length to a larger length | 5 2) setting length to a larger length |
| 7 PASS mySelect.options.length is 5 | 6 PASS mySelect.options.length is 5 |
| 8 PASS mySelect.selectedIndex is 1 | 7 PASS mySelect.selectedIndex is 1 |
| 9 3) setting length to a smaller length | 8 3) setting length to a smaller length |
| 10 PASS mySelect.options.length is 2 | 9 PASS mySelect.options.length is 2 |
| 11 PASS mySelect.selectedIndex is 1 | 10 PASS mySelect.selectedIndex is 1 |
| 12 PASS mySelect.options.length is 1 | 11 PASS mySelect.options.length is 1 |
| 13 PASS mySelect.selectedIndex is -1 | 12 PASS mySelect.selectedIndex is -1 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 PASS mySelect.selectedIndex is -1 | 70 PASS mySelect.selectedIndex is -1 |
| 72 23) trying to add a non-option element | 71 23) trying to add a non-option element |
| 73 PASS mySelect.options.add({}) threw exception TypeError: Failed to execute 'add'
on 'HTMLOptionsCollection': The provided value is not of type '(HTMLOptionEleme
nt or HTMLOptGroupElement)'. | 72 PASS mySelect.options.add({}) threw exception TypeError: Failed to execute 'add'
on 'HTMLOptionsCollection': The provided value is not of type '(HTMLOptionEleme
nt or HTMLOptGroupElement)'. |
| 74 PASS mySelect.options.length is 10 | 73 PASS mySelect.options.length is 10 |
| 75 PASS mySelect.selectedIndex is -1 | 74 PASS mySelect.selectedIndex is -1 |
| 76 | 75 |
| 77 PASS successfullyParsed is true | 76 PASS successfullyParsed is true |
| 78 | 77 |
| 79 TEST COMPLETE | 78 TEST COMPLETE |
| 80 | 79 |
| OLD | NEW |