| 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.. | 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 | 4 PASS mySelect.options.length is 2 |
| 5 PASS mySelect.selectedIndex is 1 | 5 PASS mySelect.selectedIndex is 1 |
| 6 2) setting length to a larger length | 6 2) setting length to a larger length |
| 7 PASS mySelect.options.length is 5 | 7 PASS mySelect.options.length is 5 |
| 8 PASS mySelect.selectedIndex is 1 | 8 PASS mySelect.selectedIndex is 1 |
| 9 3) setting length to a smaller length | 9 3) setting length to a smaller length |
| 10 PASS mySelect.options.length is 2 | 10 PASS mySelect.options.length is 2 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 16) setting an existing element by index | 50 16) setting an existing element by index |
| 51 PASS mySelect.options.length is 11 | 51 PASS mySelect.options.length is 11 |
| 52 PASS mySelect.selectedIndex is 10 | 52 PASS mySelect.selectedIndex is 10 |
| 53 17) trying to set an element that's not an option: null | 53 17) trying to set an element that's not an option: null |
| 54 PASS mySelect.options.length is 10 | 54 PASS mySelect.options.length is 10 |
| 55 PASS mySelect.selectedIndex is -1 | 55 PASS mySelect.selectedIndex is -1 |
| 56 18) trying to set an element that's not an option: undefined | 56 18) trying to set an element that's not an option: undefined |
| 57 PASS mySelect.options.length is 10 | 57 PASS mySelect.options.length is 10 |
| 58 PASS mySelect.selectedIndex is -1 | 58 PASS mySelect.selectedIndex is -1 |
| 59 19) trying to set an element that's not an option: select element | 59 19) trying to set an element that's not an option: select element |
| 60 PASS mySelect.options[10] = mySelect; threw exception TypeError: The provided va
lue is not of type 'HTMLOptionElement'.. | 60 PASS mySelect.options[10] = mySelect; threw exception TypeError: Failed to set a
n indexed property on 'HTMLOptionsCollection': The provided value is not of type
'HTMLOptionElement'.. |
| 61 PASS mySelect.options.length is 10 | 61 PASS mySelect.options.length is 10 |
| 62 PASS mySelect.selectedIndex is -1 | 62 PASS mySelect.selectedIndex is -1 |
| 63 20) trying to set a option element using an invalid index: negative infinity | 63 20) trying to set a option element using an invalid index: negative infinity |
| 64 PASS mySelect.options.length is 10 | 64 PASS mySelect.options.length is 10 |
| 65 PASS mySelect.selectedIndex is -1 | 65 PASS mySelect.selectedIndex is -1 |
| 66 21) trying to set a option element using an invalid index: NaN | 66 21) trying to set a option element using an invalid index: NaN |
| 67 PASS mySelect.options.length is 10 | 67 PASS mySelect.options.length is 10 |
| 68 PASS mySelect.selectedIndex is -1 | 68 PASS mySelect.selectedIndex is -1 |
| 69 22) trying to set a option element using an invalid index: positive infinity | 69 22) trying to set a option element using an invalid index: positive infinity |
| 70 PASS mySelect.options.length is 10 | 70 PASS mySelect.options.length is 10 |
| 71 PASS mySelect.selectedIndex is -1 | 71 PASS mySelect.selectedIndex is -1 |
| 72 23) trying to add a non-option element | 72 23) trying to add a non-option element |
| 73 PASS mySelect.options.add({}) threw exception TypeError: Failed to execute 'add'
on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement.. | 73 PASS mySelect.options.add({}) threw exception TypeError: Failed to execute 'add'
on 'HTMLOptionsCollection': The element provided was not an HTMLOptionElement.. |
| 74 PASS mySelect.options.length is 10 | 74 PASS mySelect.options.length is 10 |
| 75 PASS mySelect.selectedIndex is -1 | 75 PASS mySelect.selectedIndex is -1 |
| 76 | 76 |
| 77 PASS successfullyParsed is true | 77 PASS successfullyParsed is true |
| 78 | 78 |
| 79 TEST COMPLETE | 79 TEST COMPLETE |
| 80 | 80 |
| OLD | NEW |