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
Notes: sideshowbarker 2024-07-17 03:03:37 +09:00
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1 @@
PASS

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>