LibJS: Enable Date.parse.js tests that pass after c399caf27f

This commit is contained in:
Nico Weber 2020-08-22 22:12:22 -04:00 committed by Andreas Kling
parent 553889b2f5
commit cec467fe35
Notes: sideshowbarker 2024-07-19 03:16:18 +09:00

View file

@ -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);