mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02: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:
committed by
Andreas Kling
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
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>
|
||||
Reference in New Issue
Block a user