1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

Tests/LibWeb: Verify instantiation behavior of Blob w/empty constructor

This verifies that a Blob instantiated with an empty constructor creates
a Blob with Blob.size equal to 0 and Blob.type equal to "".
This commit is contained in:
Kenneth Myhra 2023-11-28 21:24:53 +01:00 committed by Andreas Kling
parent 36fddab68e
commit 3d86e16407
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<script src="../include.js"></script>
<script>
test(() => {
const blob = new Blob;
if (blob.size === 0 && blob.type === "")
println("PASS");
else
println("FAIL");
});
</script>