Changeset 167184 in webkit


Ignore:
Timestamp:
Apr 12, 2014 12:34:04 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

(before-mar-1-1000) In correct date creation prior to 1 Mar 1000
https://bugs.webkit.org/show_bug.cgi?id=129308

Patch by Tibor Meszaros <tmeszaros.u-szeged@partner.samsung.com> on 2014-04-12
Reviewed by Darin Adler.

  • js/date-constructor-expected.txt:
  • js/script-tests/date-constructor.js:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r167167 r167184  
     12014-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
    1112014-04-11  Jon Honeycutt  <jhoneycutt@apple.com>
    212
  • trunk/LayoutTests/js/date-constructor-expected.txt

    r165667 r167184  
    3434PASS Number(new Date(new Date(1, 1, 1, 1, 1, 1, 1, 1, Infinity)).getTime() - timeZoneOffset) is -2174770738999
    3535PASS new Date(6501480442020679337816440, 81696082856817131586190070, 1, 1, 1, 1, 1).getTime() is Number.NaN
     36PASS new Date(Date.parse('28 Feb 1000 GMT')).toGMTString() is "Fri, 28 Feb 1000 00:00:00 GMT"
     37PASS new Date(Date.parse('1 Dec 988 GMT')).toGMTString() is "Mon, 01 Dec 0988 00:00:00 GMT"
     38PASS new Date(Date.parse('1 Mar 1000 GMT')).toGMTString() is "Sat, 01 Mar 1000 00:00:00 GMT"
    3639PASS testStr is "1234567"
    3740PASS testStr is "1234567"
  • trunk/LayoutTests/js/script-tests/date-constructor.js

    r165667 r167184  
    4646
    4747shouldBe('new Date(6501480442020679337816440, 81696082856817131586190070, 1, 1, 1, 1, 1).getTime()', 'Number.NaN');
     48
     49shouldBe("new Date(Date.parse('28 Feb 1000 GMT')).toGMTString()", "\"Fri, 28 Feb 1000 00:00:00 GMT\"");
     50shouldBe("new Date(Date.parse('1 Dec 988 GMT')).toGMTString()", "\"Mon, 01 Dec 0988 00:00:00 GMT\"");
     51shouldBe("new Date(Date.parse('1 Mar 1000 GMT')).toGMTString()", "\"Sat, 01 Mar 1000 00:00:00 GMT\"");
    4852
    4953// 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.