Tests/LibWeb: Add primitives test for structuredClone()

This commit is contained in:
Kenneth Myhra
2023-07-21 21:30:18 +02:00
committed by Andreas Kling
parent 8c88e8f896
commit 2c06ad3a05
Notes: sideshowbarker 2024-07-17 03:35:16 +09:00
2 changed files with 21 additions and 0 deletions

View 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>