OLD | NEW |
| (Empty) |
1 This is a testharness.js-based test. | |
2 Harness Error. harness_status.status = 1 , harness_status.message = error2 | |
3 PASS Service worker test setup | |
4 PASS Aborting a WritableStream before it starts should cause the writer's unsett
led ready promise to reject | |
5 PASS Aborting a WritableStream should cause the writer's fulfilled ready promise
to reset to a rejected one | |
6 PASS abort() on a released writer rejects | |
7 PASS Aborting a WritableStream immediately prevents future writes | |
8 PASS Aborting a WritableStream prevents further writes after any that are in pro
gress | |
9 PASS Fulfillment value of ws.abort() call must be undefined even if the underlyi
ng sink returns a non-undefined value | |
10 PASS WritableStream if sink's abort throws, the promise returned by writer.abort
() rejects | |
11 PASS WritableStream if sink's abort throws, the promise returned by ws.abort() r
ejects | |
12 PASS WritableStream if sink's abort throws, for an abort performed during a writ
e, the promise returned by ws.abort() rejects | |
13 PASS Aborting a WritableStream passes through the given reason | |
14 PASS Aborting a WritableStream puts it in an errored state, with a TypeError as
the stored error | |
15 PASS Aborting a WritableStream causes any outstanding write() promises to be rej
ected with a TypeError | |
16 PASS Closing but then immediately aborting a WritableStream causes the stream to
error | |
17 PASS Closing a WritableStream and aborting it while it closes causes the stream
to ignore the abort attempt | |
18 PASS Aborting a WritableStream after it is closed is a no-op | |
19 PASS WritableStream should NOT call underlying sink's close if no abort is suppl
ied (historical) | |
20 PASS returning a thenable from abort() should work | |
21 PASS .closed should not resolve before fulfilled write() | |
22 FAIL .closed should not resolve before rejected write(); write() error should no
t overwrite abort() error promise_test: Unhandled rejection with value: object "
error1: error1" | |
23 PASS writes should be satisfied in order when aborting | |
24 FAIL writes should be satisfied in order after rejected write when aborting prom
ise_test: Unhandled rejection with value: object "error1: error1" | |
25 FAIL close() should reject with TypeError when abort() is first error promise_te
st: Unhandled rejection with value: object "error1: error1" | |
26 PASS underlying abort() should not be called until underlying write() completes | |
27 PASS underlying abort() should not be called if underlying close() has started | |
28 PASS if underlying close() has started and then rejects, the abort() and close()
promises should reject with the underlying close rejection reason | |
29 PASS an abort() that happens during a write() should trigger the underlying abor
t() even with a close() queued | |
30 PASS if a writer is created for a stream with a pending abort, its ready should
be rejected with a TypeError | |
31 PASS writer close() promise should resolve before abort() promise | |
32 PASS writer.ready should reject on controller error without waiting for underlyi
ng write | |
33 FAIL writer.abort() while there is an in-flight write, and then finish the write
with rejection promise_test: Unhandled rejection with value: object "error2: er
ror2" | |
34 FAIL writer.abort(), controller.error() while there is an in-flight write, and t
hen finish the write assert_throws: writePromise3 must reject with an error indi
cating abort function "function () { throw e }" threw object "error2: error2" ("
error2") expected object "TypeError" ("TypeError") | |
35 FAIL writer.abort(), controller.error() while there is an in-flight close, and t
hen finish the close promise_test: Unhandled rejection with value: object "error
2: error2" | |
36 FAIL controller.error(), writer.abort() while there is an in-flight write, and t
hen finish the write assert_array_equals: writePromise and writer.closed must no
t be fulfilled/rejected yet even after writer.abort() lengths differ, expected 0
got 1 | |
37 FAIL controller.error(), writer.abort() while there is an in-flight close, and t
hen finish the close promise_test: Unhandled rejection with value: object "error
2: error2" | |
38 PASS releaseLock() while aborting should reject the original closed promise | |
39 FAIL releaseLock() during delayed async abort() should reject the writer.closed
promise assert_equals: closed promise should not have changed expected object "[
object Promise]" but got object "[object Promise]" | |
40 PASS sink abort() should not be called until sink start() is done | |
41 FAIL if start attempts to error the controller after abort() has been called, th
en it should lose promise_test: Unhandled rejection with value: object "error1:
error1" | |
42 FAIL stream abort() promise should still resolve if sink start() rejects promise
_test: Unhandled rejection with value: object "error1: error1" | |
43 PASS writer abort() during sink start() should replace the writer.ready promise
synchronously | |
44 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 1, expected "write1" but got "close" | |
45 FAIL abort() should succeed despite rejection from write promise_test: Unhandled
rejection with value: object "error1: error1" | |
46 FAIL abort() should be rejected with the rejection returned from close() assert_
throws: abort() should reject with error2 function "function () { throw e }" thr
ew object "error1: error1" ("error1") expected object "error2: error2" ("error2"
) | |
47 FAIL a rejecting sink.write() should not prevent sink.abort() from being called
promise_test: Unhandled rejection with value: object "error1: error1" | |
48 FAIL when start errors after stream abort(), underlying sink abort() should be c
alled anyway promise_test: Unhandled rejection with value: object "error1: error
1" | |
49 PASS when calling abort() twice on the same stream, the second call should rejec
t | |
50 PASS sink abort() should not be called if stream was erroring due to controller.
error() before abort() was called | |
51 PASS sink abort() should not be called if stream was erroring due to bad strateg
y before abort() was called | |
52 Harness: the test ran to completion. | |
53 | |
OLD | NEW |