2025-03-18 15:28:35 -03:00
|
|
|
<!DOCTYPE html>
|
2024-07-24 03:48:01 -03:00
|
|
|
<script src="../include.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
asyncTest(async (done) => {
|
|
|
|
|
const blob = new Blob(["This is some data to be read! 🦬"]);
|
|
|
|
|
const uint8Array = await blob.bytes();
|
|
|
|
|
const string = new TextDecoder().decode(uint8Array);
|
|
|
|
|
if (string === "This is some data to be read! 🦬")
|
|
|
|
|
println("PASS");
|
|
|
|
|
else
|
|
|
|
|
println("FAIL");
|
|
|
|
|
done();
|
|
|
|
|
});
|
|
|
|
|
</script>
|