mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
Tests/LibWeb: Add primitives test for structuredClone()
This commit is contained in:
committed by
Andreas Kling
parent
8c88e8f896
commit
2c06ad3a05
Notes:
sideshowbarker
2024-07-17 03:35:16 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/2c06ad3a05 Pull-request: https://github.com/SerenityOS/serenity/pull/20132
13
Tests/LibWeb/Text/input/HTML/StructuredClone-primitives.html
Normal file
13
Tests/LibWeb/Text/input/HTML/StructuredClone-primitives.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
println(structuredClone(undefined));
|
||||
println(structuredClone(null));
|
||||
println(structuredClone(true));
|
||||
println(structuredClone(false));
|
||||
println(structuredClone(123));
|
||||
println(structuredClone(123.456));
|
||||
println(structuredClone(BigInt("0x1fffffffffffff")))
|
||||
println(structuredClone("This is a string"));
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user