mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibJS: Enable Date.parse.js tests that pass after c399caf27f
This commit is contained in:
parent
553889b2f5
commit
cec467fe35
Notes:
sideshowbarker
2024-07-19 03:16:18 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/cec467fe355 Pull-request: https://github.com/SerenityOS/serenity/pull/3269
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue