Tests/LibWeb: Add primitives test for structuredClone()
This commit is contained in:
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
2 changed files with 21 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
||||||
|
undefined
|
||||||
|
null
|
||||||
|
true
|
||||||
|
false
|
||||||
|
123
|
||||||
|
123.456
|
||||||
|
9007199254740991
|
||||||
|
This is a string
|
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>
|
Loading…
Add table
Reference in a new issue