LibWeb: Update spec steps for closing TransformStreams

This was actually an older change to the Streams spec that we missed
when we implemented TransformStreams. This fixes a crash in the imported
WPT tests.

See: 007d729
This commit is contained in:
Timothy Flynn 2025-04-16 08:11:24 -04:00 committed by Tim Flynn
commit 3fdad8fe22
Notes: github-actions[bot] 2025-04-16 15:40:27 +00:00
4 changed files with 287 additions and 29 deletions

View file

@ -0,0 +1,16 @@
Harness status: OK
Found 11 tests
11 Pass
Pass cancelling the readable side should call transformer.cancel()
Pass cancelling the readable side should reject if transformer.cancel() throws
Pass aborting the writable side should call transformer.abort()
Pass aborting the writable side should reject if transformer.cancel() throws
Pass closing the writable side should reject if a parallel transformer.cancel() throws
Pass readable.cancel() and a parallel writable.close() should reject if a transformer.cancel() calls controller.error()
Pass writable.abort() and readable.cancel() should reject if a transformer.cancel() calls controller.error()
Pass readable.cancel() should not call cancel() when flush() is already called from writable.close()
Pass readable.cancel() should not call cancel() again when already called from writable.abort()
Pass writable.close() should not call flush() when cancel() is already called from readable.cancel()
Pass writable.abort() should not call cancel() again when already called from readable.cancel()