diff options
author | Nico Weber <thakis@chromium.org> | 2020-08-22 22:12:22 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-23 10:42:37 +0200 |
commit | cec467fe3557c4d8ba980b951fcc971f165abdb6 (patch) | |
tree | d45df7d473e59c327ecbfca48f433251b35ecafe | |
parent | 553889b2f5d82052edccdbc7a6d3c049991daa8f (diff) | |
download | serenity-cec467fe3557c4d8ba980b951fcc971f165abdb6.zip |
LibJS: Enable Date.parse.js tests that pass after c399caf27f9de4
-rw-r--r-- | Libraries/LibJS/Tests/builtins/Date/Date.parse.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Libraries/LibJS/Tests/builtins/Date/Date.parse.js b/Libraries/LibJS/Tests/builtins/Date/Date.parse.js index f337675a02..ca2766ae34 100644 --- a/Libraries/LibJS/Tests/builtins/Date/Date.parse.js +++ b/Libraries/LibJS/Tests/builtins/Date/Date.parse.js @@ -9,10 +9,9 @@ test("basic functionality", () => { expect(Date.parse("2020T13:14-15:16")).toBe(1577939400000); expect(Date.parse("2020T23:59Z")).toBe(1577923140000); - // FIXME: Real extended year tests are blocked on better time_t handling in LibC. - expect(Date.parse("+002020")).toBe(1577836800000); - expect(Date.parse("+002000-11")).toBe(973036800000); - expect(Date.parse("+002020T23:59Z")).toBe(1577923140000); + expect(Date.parse("+020000")).toBe(568971820800000); + expect(Date.parse("+020000-01")).toBe(568971820800000); + expect(Date.parse("+020000-01T00:00:00.000Z")).toBe(568971820800000); expect(Date.parse(2020)).toBe(1577836800000); |