| OLD | NEW |
| 1 Tests that the NodeList.item() argument is correctly validated. | 1 Tests that the NodeList.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 nodeList.__proto__ is NodeList.prototype | 6 PASS nodeList.__proto__ is NodeList.prototype |
| 7 PASS nodeList.item(0).id is "a" | 7 PASS nodeList.item(0).id is "a" |
| 8 PASS nodeList.item(1).id is "b" | 8 PASS nodeList.item(1).id is "b" |
| 9 PASS nodeList.item(2) is null | 9 PASS nodeList.item(2) is null |
| 10 PASS nodeList.item(-1) is null | 10 PASS nodeList.item(-1) is null |
| 11 PASS nodeList.item(-4294967295).id is "b" | 11 PASS nodeList.item(-4294967295).id is "b" |
| 12 PASS nodeList.item() threw exception TypeError: Not enough arguments. | 12 PASS nodeList.item() threw exception TypeError: Failed to execute 'item' on 'Nod
eList': 1 argument required, but only 0 present.. |
| 13 PASS successfullyParsed is true | 13 PASS successfullyParsed is true |
| 14 | 14 |
| 15 TEST COMPLETE | 15 TEST COMPLETE |
| 16 | 16 |
| OLD | NEW |