ladybird/Tests/LibWeb/Text/input/Streams/init-from-cloned-fetch-response.html
2025-03-20 11:50:49 +01:00

18 lines
548 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
asyncTest(async done => {
fetch("./../basic.html", { mode: "no-cors" })
.then(response => {
const clonedResponse = response.clone();
return clonedResponse.body;
})
.then(body => {
const reader = body.getReader();
reader.read();
println("Was able to create a reader from a cloned Fetch response!");
done();
});
});
</script>