Changeset 167184 in webkit
- Timestamp:
- Apr 12, 2014 12:34:04 PM (10 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r167167 r167184 1 2014-04-12 Tibor Meszaros <tmeszaros.u-szeged@partner.samsung.com> 2 3 (before-mar-1-1000) In correct date creation prior to 1 Mar 1000 4 https://bugs.webkit.org/show_bug.cgi?id=129308 5 6 Reviewed by Darin Adler. 7 8 * js/date-constructor-expected.txt: 9 * js/script-tests/date-constructor.js: 10 1 11 2014-04-11 Jon Honeycutt <jhoneycutt@apple.com> 2 12 -
trunk/LayoutTests/js/date-constructor-expected.txt
r165667 r167184 34 34 PASS Number(new Date(new Date(1, 1, 1, 1, 1, 1, 1, 1, Infinity)).getTime() - timeZoneOffset) is -2174770738999 35 35 PASS new Date(6501480442020679337816440, 81696082856817131586190070, 1, 1, 1, 1, 1).getTime() is Number.NaN 36 PASS new Date(Date.parse('28 Feb 1000 GMT')).toGMTString() is "Fri, 28 Feb 1000 00:00:00 GMT" 37 PASS new Date(Date.parse('1 Dec 988 GMT')).toGMTString() is "Mon, 01 Dec 0988 00:00:00 GMT" 38 PASS new Date(Date.parse('1 Mar 1000 GMT')).toGMTString() is "Sat, 01 Mar 1000 00:00:00 GMT" 36 39 PASS testStr is "1234567" 37 40 PASS testStr is "1234567" -
trunk/LayoutTests/js/script-tests/date-constructor.js
r165667 r167184 46 46 47 47 shouldBe('new Date(6501480442020679337816440, 81696082856817131586190070, 1, 1, 1, 1, 1).getTime()', 'Number.NaN'); 48 49 shouldBe("new Date(Date.parse('28 Feb 1000 GMT')).toGMTString()", "\"Fri, 28 Feb 1000 00:00:00 GMT\""); 50 shouldBe("new Date(Date.parse('1 Dec 988 GMT')).toGMTString()", "\"Mon, 01 Dec 0988 00:00:00 GMT\""); 51 shouldBe("new Date(Date.parse('1 Mar 1000 GMT')).toGMTString()", "\"Sat, 01 Mar 1000 00:00:00 GMT\""); 48 52 49 53 // In Firefox, the results of the following tests are timezone-dependent, which likely implies that the implementation is not quite correct.
Note: See TracChangeset
for help on using the changeset viewer.