summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-08-22 22:12:22 -0400
committerAndreas Kling <kling@serenityos.org>2020-08-23 10:42:37 +0200
commitcec467fe3557c4d8ba980b951fcc971f165abdb6 (patch)
treed45df7d473e59c327ecbfca48f433251b35ecafe
parent553889b2f5d82052edccdbc7a6d3c049991daa8f (diff)
downloadserenity-cec467fe3557c4d8ba980b951fcc971f165abdb6.zip
LibJS: Enable Date.parse.js tests that pass after c399caf27f9de4
-rw-r--r--Libraries/LibJS/Tests/builtins/Date/Date.parse.js7
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);