OLD | NEW |
| (Empty) |
1 This is a testharness.js-based test. | |
2 PASS fulfillment value of ws.close() call must be undefined even if the underlyi
ng sink returns a non-undefined value | |
3 FAIL when sink calls error asynchronously while sink close is in-flight, the str
eam should not become errored promise_test: Unhandled rejection with value: obje
ct "error1: error1" | |
4 FAIL when sink calls error synchronously while closing, the stream should not be
come errored promise_test: Unhandled rejection with value: object "Error: error
me" | |
5 PASS when the sink throws during close, and the close is requested while a write
is still in-flight, the stream should become errored during the close | |
6 PASS releaseLock on a stream with a pending write in which the stream has been e
rrored | |
7 PASS releaseLock on a stream with a pending close in which controller.error() wa
s called | |
8 PASS when close is called on a WritableStream in writable state, ready should re
turn a fulfilled promise | |
9 PASS when close is called on a WritableStream in waiting state, ready promise sh
ould be fulfilled | |
10 PASS when close is called on a WritableStream in waiting state, ready should be
fulfilled immediately even if close takes a long time | |
11 PASS returning a thenable from close() should work | |
12 PASS releaseLock() should not change the result of sync close() | |
13 PASS releaseLock() should not change the result of async close() | |
14 PASS close() should set state to CLOSED even if writer has detached | |
15 PASS the promise returned by async abort during close should resolve | |
16 PASS promises must fulfill/reject in the expected order on closure | |
17 FAIL promises must fulfill/reject in the expected order on aborted closure asser
t_array_equals: promises must fulfill/reject in the expected order property 1, e
xpected "abortPromise" but got "closed" | |
18 FAIL promises must fulfill/reject in the expected order on aborted and errored c
losure assert_throws: writer.closed must reject with a TypeError indicating the
stream was aborted function "function () { throw e }" threw object "error1: erro
r1" ("error1") expected object "TypeError" ("TypeError") | |
19 FAIL close() should not reject until no sink methods are in flight assert_false:
expected false got true | |
20 Harness: the test ran to completion. | |
21 | |
OLD | NEW |