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

Tests/LibWeb: Initialize Blob with string and read it from text()

This commit is contained in:
Kenneth Myhra 2023-12-03 17:50:30 +01:00 committed by Andreas Kling
parent 000ea9d73b
commit b72489409a
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,12 @@
<script src="../include.js"></script>
<script>
asyncTest(async (done) => {
const blob = new Blob(["This is some data to be read! 🦬"]);
const text = await blob.text();
if (text === "This is some data to be read! 🦬")
println("PASS");
else
println("FAIL");
done();
});
</script>