OLD | NEW |
| (Empty) |
1 This is a testharness.js-based test. | |
2 PASS Service worker test setup | |
3 PASS Aborting a WritableStream before it starts should cause the writer's unsett
led ready promise to reject | |
4 PASS Aborting a WritableStream should cause the writer's fulfilled ready promise
to reset to a rejected one | |
5 PASS abort() on a released writer rejects | |
6 PASS Aborting a WritableStream immediately prevents future writes | |
7 PASS Aborting a WritableStream prevents further writes after any that are in pro
gress | |
8 PASS Fulfillment value of ws.abort() call must be undefined even if the underlyi
ng sink returns a non-undefined value | |
9 PASS WritableStream if sink's abort throws, the promise returned by writer.abort
() rejects | |
10 PASS WritableStream if sink's abort throws, the promise returned by ws.abort() r
ejects | |
11 PASS WritableStream if sink's abort throws, for an abort performed during a writ
e, the promise returned by ws.abort() rejects | |
12 PASS Aborting a WritableStream passes through the given reason | |
13 PASS Aborting a WritableStream puts it in an errored state, with a TypeError as
the stored error | |
14 PASS Aborting a WritableStream causes any outstanding write() promises to be rej
ected with a TypeError | |
15 PASS Closing but then immediately aborting a WritableStream causes the stream to
error | |
16 FAIL Closing a WritableStream and aborting it while it closes causes the stream
to ignore the abort attempt promise_test: Unhandled rejection with value: object
"TypeError: The stream has been aborted" | |
17 PASS Aborting a WritableStream after it is closed is a no-op | |
18 PASS WritableStream should NOT call underlying sink's close if no abort is suppl
ied (historical) | |
19 PASS returning a thenable from abort() should work | |
20 PASS .closed should not resolve before fulfilled write() | |
21 PASS .closed should not resolve before rejected write(); write() error should ov
erwrite abort() error | |
22 PASS writes should be satisfied in order when aborting | |
23 PASS writes should be satisfied in order after rejected write when aborting | |
24 PASS close() should use error from underlying write() on abort | |
25 PASS underlying abort() should not be called until underlying write() completes | |
26 PASS underlying abort() should not be called if underlying close() has started | |
27 PASS if underlying close() has started and then rejects, the abort() and close()
promises should reject with the underlying close rejection reason | |
28 PASS an abort() that happens during a write() should trigger the underlying abor
t() even with a close() queued | |
29 FAIL if a writer is created for a stream with a pending abort, its ready should
be rejected with a TypeError assert_unreached: Should have rejected: ready of th
e second writer should be rejected with a TypeError Reached unreachable code | |
30 PASS writer close() promise should resolve before abort() promise | |
31 PASS writer.ready should reject on controller error without waiting for underlyi
ng write | |
32 FAIL writer.abort() while there is an in-flight write, and then finish the write
with rejection assert_throws: writePromise3 must reject with the error returned
from the sink's write method function "function () { throw e }" threw object "T
ypeError: Cannot write to a errored writable stream" ("TypeError") expected obje
ct "error2: error2" ("error2") | |
33 FAIL writer.abort(), controller.error() while there is an in-flight write, and t
hen finish the write promise_test: Unhandled rejection with value: object "TypeE
rror: Cannot error a errored writable stream" | |
34 FAIL controller.error(), writer.abort() while there is an in-flight write, and t
hen finish the write assert_throws: writePromise2 must reject with the error pas
sed to the controller's error method function "function () { throw e }" threw ob
ject "TypeError: Cannot write to a errored writable stream" ("TypeError") expect
ed object "error2: error2" ("error2") | |
35 PASS releaseLock() while aborting should reject the original closed promise | |
36 PASS releaseLock() during delayed async abort() should create a new rejected clo
sed promise | |
37 FAIL sink abort() should not be called until sink start() is done assert_array_e
quals: abort() should not be called during start() lengths differ, expected 0 go
t 2 | |
38 FAIL abort() promise should reject if start() errors the controller Cannot error
a errored writable stream | |
39 FAIL stream abort() promise should reject if sink start() rejects assert_unreach
ed: Should have rejected: abort() should reject if start() rejects Reached unrea
chable code | |
40 PASS writer abort() during sink start() should replace the writer.ready promise
synchronously | |
41 FAIL promises returned from other writer methods should be rejected when writer
abort() happens during sink start() assert_array_equals: promises should resolve
in the standard order property 0, expected "write2" but got "abort" | |
42 FAIL abort() should be rejected with the error passed to controller.error() duri
ng pending write() promise_test: Unhandled rejection with value: object "TypeErr
or: Cannot error a errored writable stream" | |
43 FAIL abort() should be rejected with the error passed to controller.error() duri
ng pending close() promise_test: Unhandled rejection with value: object "TypeErr
or: Cannot error a errored writable stream" | |
44 Harness: the test ran to completion. | |
45 | |
OLD | NEW |