Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/streams/writable-streams/aborting.sharedworker-expected.txt

Issue 2772293002: Update WritableStream to new standard version (Closed)
Patch Set: Changes from domenic@ review Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 This is a testharness.js-based test.
2 PASS Aborting a WritableStream before it starts should cause the writer's unsett led ready promise to reject
3 PASS Aborting a WritableStream should cause the writer's fulfilled ready promise to reset to a rejected one
4 PASS abort() on a released writer rejects
5 PASS Aborting a WritableStream immediately prevents future writes
6 PASS Aborting a WritableStream prevents further writes after any that are in pro gress
7 PASS Fulfillment value of ws.abort() call must be undefined even if the underlyi ng sink returns a non-undefined value
8 PASS WritableStream if sink's abort throws, the promise returned by writer.abort () rejects
9 PASS WritableStream if sink's abort throws, the promise returned by ws.abort() r ejects
10 PASS WritableStream if sink's abort throws, for an abort performed during a writ e, the promise returned by ws.abort() rejects
11 PASS Aborting a WritableStream passes through the given reason
12 PASS Aborting a WritableStream puts it in an errored state, with a TypeError as the stored error
13 PASS Aborting a WritableStream causes any outstanding write() promises to be rej ected with a TypeError
14 PASS Closing but then immediately aborting a WritableStream causes the stream to error
15 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"
16 PASS Aborting a WritableStream after it is closed is a no-op
17 PASS WritableStream should NOT call underlying sink's close if no abort is suppl ied (historical)
18 PASS returning a thenable from abort() should work
19 PASS .closed should not resolve before fulfilled write()
20 PASS .closed should not resolve before rejected write(); write() error should ov erwrite abort() error
21 PASS writes should be satisfied in order when aborting
22 PASS writes should be satisfied in order after rejected write when aborting
23 PASS close() should use error from underlying write() on abort
24 PASS underlying abort() should not be called until underlying write() completes
25 PASS underlying abort() should not be called if underlying close() has started
26 PASS if underlying close() has started and then rejects, the abort() and close() promises should reject with the underlying close rejection reason
27 PASS an abort() that happens during a write() should trigger the underlying abor t() even with a close() queued
28 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
29 PASS writer close() promise should resolve before abort() promise
30 PASS writer.ready should reject on controller error without waiting for underlyi ng write
31 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")
32 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"
33 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")
34 PASS releaseLock() while aborting should reject the original closed promise
35 PASS releaseLock() during delayed async abort() should create a new rejected clo sed promise
36 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
37 FAIL abort() promise should reject if start() errors the controller Cannot error a errored writable stream
38 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
39 PASS writer abort() during sink start() should replace the writer.ready promise synchronously
40 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"
41 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"
42 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"
43 Harness: the test ran to completion.
44
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698