mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
LibJS: Implement Date.prototype.toISOString()
This commit is contained in:
parent
1eac1b360b
commit
a6b68451dc
Notes:
sideshowbarker
2024-07-19 03:22:38 +09:00
Author: https://github.com/nico
Commit: a6b68451dc
Pull-request: https://github.com/SerenityOS/serenity/pull/3234
5 changed files with 55 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
test("basic functionality", () => {
|
||||
expect(new Date(1597955034555).toISOString()).toBe("2020-08-20T20:23:54.555Z");
|
||||
|
||||
// FIXME: Add these once they work.
|
||||
//expect(new Date(Date.UTC(22020)).toISOString()).toBe("+022020-01-01T00:00:00.000Z");
|
||||
//expect(new Date(Date.UTC(1950)).toISOString()).toBe("1950-01-01T00:00:00.000Z");
|
||||
//expect(new Date(Date.UTC(1800)).toISOString()).toBe("1800-01-01T00:00:00.000Z");
|
||||
//expect(new Date(Date.UTC(-100)).toISOString()).toBe("-000100-01-01T00:00:00.000Z");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue