strategies.any.html
Details
- Test
/streams/transform-streams/strategies.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | writableStrategy highWaterMark should work |
| PASS | readableStrategy highWaterMark should work |
| FAIL | writable should have the correct size() function The value cannot be converted because it is not an integer. |
| PASS | default writable strategy should be equivalent to { highWaterMark: 1 } |
| PASS | default readable strategy should be equivalent to { highWaterMark: 0 } |
| FAIL | a RangeError should be thrown for an invalid highWaterMark assert_throws_js: should throw RangeError for negative writableHighWaterMark function "() => new TransformStream(undefined, { highWaterMark: -1 })" threw object "TypeError: The value cannot be convert… |
| PASS | writableStrategy highWaterMark should be converted to a number |
| PASS | readableStrategy highWaterMark should be converted to a number |
| FAIL | a bad readableStrategy size function should cause writer.write() to reject on an identity transform assert_unreached: Should have rejected: write should reject Reached unreachable code |
| FAIL | a bad readableStrategy size function should error the stream on enqueue even when transformer.transform() catches the exception assert_throws_js: enqueue should throw function "() => controller.enqueue(chunk)" did not throw |