ladybird/Tests/LibWeb/Text/input/FileAPI/Blob-initialized-with-strings-read-from-arrayBuffer.html
2025-08-27 08:48:01 +02:00

14 lines
464 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
asyncTest(async (done) => {
const blob = new Blob(["This is some data to be read! 🦬"]);
const arrayBuffer = await blob.arrayBuffer();
const string = new TextDecoder().decode(new Uint8Array(arrayBuffer));
if (string === "This is some data to be read! 🦬")
println("PASS");
else
println("FAIL");
done();
});
</script>