| OLD | NEW |
| 1 Tests that the HTMLSelectElement.item() argument is correctly validated. | 1 Tests that the HTMLSelectElement.item() argument is correctly validated. |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS select.__proto__ is HTMLSelectElement.prototype | 6 PASS select.__proto__ is HTMLSelectElement.prototype |
| 7 PASS select.item(0).value is "a" | 7 PASS select.item(0).value is "a" |
| 8 PASS select.item(1).value is "b" | 8 PASS select.item(1).value is "b" |
| 9 PASS select.item(2).value is "c" | 9 PASS select.item(2).value is "c" |
| 10 PASS select.item(3).value is "d" | 10 PASS select.item(3).value is "d" |
| 11 PASS select.item(4) is null | 11 PASS select.item(4) is null |
| 12 PASS select.item(-1) is null | 12 PASS select.item(-1) is null |
| 13 PASS select.item(-4294967294).value is "c" | 13 PASS select.item(-4294967294).value is "c" |
| 14 PASS select.item() threw exception TypeError: Not enough arguments. | 14 PASS select.item() threw exception TypeError: Failed to execute 'item' on 'HTMLS
electElement': 1 argument required, but only 0 present.. |
| 15 PASS successfullyParsed is true | 15 PASS successfullyParsed is true |
| 16 | 16 |
| 17 TEST COMPLETE | 17 TEST COMPLETE |
| 18 | 18 |
| OLD | NEW |