mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
Tests/LibWeb: Add standard built-in objects test for structuredClone()
This commit is contained in:
committed by
Andreas Kling
parent
77e339022b
commit
66c0e78c7d
Notes:
sideshowbarker
2024-07-16 22:51:10 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/66c0e78c7d Pull-request: https://github.com/SerenityOS/serenity/pull/20247
@@ -0,0 +1,11 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
println(structuredClone(new Boolean(true)));
|
||||
println(structuredClone(new Boolean(false)));
|
||||
println(structuredClone(new Number(123)));
|
||||
println(structuredClone(new Number(123.456)));
|
||||
println(structuredClone(new String("This is a String object")));
|
||||
println(structuredClone(Date.UTC(2023, 7, 23)));
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user