mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-14 15:13:07 +00:00
16 lines
512 B
HTML
16 lines
512 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
function testTransformStreamReadableStreamCancellation() {
|
|
const transformStream = new TransformStream({
|
|
cancel(reason) {
|
|
println(`TransformStream cancelled due to: ${reason}`);
|
|
return Promise.resolve();
|
|
}
|
|
});
|
|
transformStream.readable.cancel('cancel called by the readable side.');
|
|
}
|
|
|
|
test(() => {
|
|
testTransformStreamReadableStreamCancellation();
|
|
});
|
|
</script>
|