mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
Tests/LibWeb: Verify we throw when trying to pipe through locked streams
This commit is contained in:
committed by
Luke Wilde
parent
9802cf07bd
commit
29521b50e6
Notes:
sideshowbarker
2024-07-17 09:37:30 +09:00
Author: https://github.com/kennethmyhra Commit: https://github.com/SerenityOS/serenity/commit/29521b50e6 Pull-request: https://github.com/SerenityOS/serenity/pull/23874 Reviewed-by: https://github.com/shannonbooth ✅
@@ -0,0 +1,17 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
asyncTest(done => {
|
||||
const transformStream = new TransformStream();
|
||||
|
||||
const stream = new ReadableStream();
|
||||
|
||||
stream.getReader();
|
||||
try {
|
||||
stream.pipeThrough(transformStream);
|
||||
}
|
||||
catch (e) {
|
||||
println(e);
|
||||
}
|
||||
done();
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user