blob: 6e8abd775b79bf2a2e623c0e876e2330c4d74686 [file] [log] [blame]
Tests for Date.toISOString
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS Date.toISOString.call({}) threw exception TypeError: Result of expression 'Date.toISOString' [undefined] is not an object..
PASS Date.toISOString.call(0) threw exception TypeError: Result of expression 'Date.toISOString' [undefined] is not an object..
PASS new Date(0).toISOString() is '1970-01-01T00:00:00Z'
PASS new Date('1 January 1500 UTC').toISOString() is '1500-01-01T00:00:00Z'
PASS new Date('1 January 2000 UTC').toISOString() is '2000-01-01T00:00:00Z'
PASS new Date('1 January 4000 UTC').toISOString() is '4000-01-01T00:00:00Z'
PASS new Date('1 January 100000 UTC').toISOString() is '100000-01-01T00:00:00Z'
PASS new Date('10 March 2000 UTC').toISOString() is '2000-03-10T00:00:00Z'
PASS new Date(NaN).toISOString() is 'Invalid Date'
PASS successfullyParsed is true
TEST COMPLETE