bad-strategies.any.html
Details
- Test
/streams/readable-streams/bad-strategies.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | Readable stream: throwing strategy.size getter |
| FAIL | Readable stream: strategy.size errors the stream and then throws assert_throws_exactly: enqueue should re-throw the error function "() => controller.enqueue('a')" did not throw |
| FAIL | Readable stream: strategy.size errors the stream and then returns Infinity assert_throws_js: enqueue should throw a RangeError function "() => controller.enqueue('a')" did not throw |
| PASS | Readable stream: throwing strategy.size method |
| PASS | Readable stream: throwing strategy.highWaterMark getter |
| FAIL | Readable stream: invalid strategy.highWaterMark assert_throws_js: construction should throw a RangeError for -1 function "() => {
new ReadableStream({}, {
size() {
return 1;
},
highWaterMark
});
}" … |
| FAIL | Readable stream: invalid strategy.size return value assert_equals: closed should reject with the error for NaN expected (undefined) undefined but got (object) object "TypeError: The value cannot be converted because it is not an integer." |
| FAIL | Readable stream: invalid strategy.size return value when pulling assert_equals: closed should reject with the error for NaN expected (undefined) undefined but got (object) object "TypeError: The value cannot be converted because it is not an integer." |