| OLD | NEW |
| (Empty) |
| 1 Tests for Date.toISOString | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS Date.toISOString.call({}) threw exception TypeError: Cannot call method 'ca
ll' of undefined. | |
| 7 PASS Date.toISOString.call(0) threw exception TypeError: Cannot call method 'cal
l' of undefined. | |
| 8 PASS new Date(-400).toISOString() is '1969-12-31T23:59:59.600Z' | |
| 9 PASS new Date(0).toISOString() is '1970-01-01T00:00:00.000Z' | |
| 10 PASS new Date('1 January 1500 UTC').toISOString() is '1500-01-01T00:00:00.000Z' | |
| 11 PASS new Date('1 January 2000 UTC').toISOString() is '2000-01-01T00:00:00.000Z' | |
| 12 PASS new Date('1 January 4000 UTC').toISOString() is '4000-01-01T00:00:00.000Z' | |
| 13 PASS new Date('1 January 100000 UTC').toISOString() is '+100000-01-01T00:00:00.0
00Z' | |
| 14 FAIL new Date('1 January -1 UTC').toISOString() should be -000001-01-01T00:00:00
.000Z. Threw exception RangeError: Invalid time value | |
| 15 PASS new Date('10 March 2000 UTC').toISOString() is '2000-03-10T00:00:00.000Z' | |
| 16 PASS throwsRangeError("new Date(NaN).toISOString()") is true | |
| 17 PASS successfullyParsed is true | |
| 18 | |
| 19 TEST COMPLETE | |
| 20 | |
| OLD | NEW |