mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:07:44 +00:00
Tests/LibWeb: Add primitives test for structuredClone()
This commit is contained in:
parent
8c88e8f896
commit
2c06ad3a05
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
Add a link
Reference in a new issue