mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-24 03:52:58 +00:00
This test proves the ability of structuredClone() to serialize and deserialize a Blob object.
12 lines
382 B
HTML
12 lines
382 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(async done => {
|
|
let blob = structuredClone(new Blob(["Hello, Blob!"], {type: "text/plain"}));
|
|
println(`instanceOf Blob: ${blob instanceof Blob}`);
|
|
println(`Blob.type: ${blob.type}`);
|
|
let text = await blob.text();
|
|
println(`Blob.text(): ${text}`);
|
|
|
|
done();
|
|
});
|
|
</script>
|