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:
parent
36fddab68e
commit
3d86e16407
Notes:
sideshowbarker
2024-07-17 03:03:37 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/3d86e16407 Pull-request: https://github.com/SerenityOS/serenity/pull/22084
2 changed files with 11 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
PASS
|
10
Tests/LibWeb/Text/input/FileAPI/Blob-empty-constructor.html
Normal file
10
Tests/LibWeb/Text/input/FileAPI/Blob-empty-constructor.html
Normal 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>
|
Loading…
Add table
Reference in a new issue