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

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

Issue 2831763003: Unified error handling for WritableStream (Closed)
Patch Set: 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 Harness Error. harness_status.status = 1 , harness_status.message = assert_array _equals: close must always be called with the controller lengths differ, expecte d 1 got 0
3 PASS fulfillment value of ws.close() call must be undefined even if the underlyi ng sink returns a non-undefined value
4 FAIL when sink calls error asynchronously while closing, the stream should becom e errored promise_test: Unhandled rejection with value: object "TypeError: Canno t read property 'error' of undefined"
5 FAIL when sink calls error synchronously while closing, the stream should become errored promise_test: Unhandled rejection with value: object "TypeError: Cannot read property 'error' of undefined"
6 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
7 PASS releaseLock on a stream with a pending write in which the stream has been e rrored
8 PASS releaseLock on a stream with a pending close in which the stream has been e rrored
9 FAIL when close is called on a WritableStream in writable state, ready should re turn a fulfilled promise assert_array_equals: write and abort should not be call ed lengths differ, expected 1 got 0
10 PASS when close is called on a WritableStream in waiting state, ready promise sh ould be fulfilled
11 FAIL when close is called on a WritableStream in waiting state, ready should be fulfilled immediately even if close takes a long time assert_array_equals: sink abort() should not be called lengths differ, expected 3 got 2
12 PASS returning a thenable from close() should work
13 PASS releaseLock() should not change the result of sync close()
14 PASS releaseLock() should not change the result of async close()
15 PASS close() should set state to CLOSED even if writer has detached
16 PASS the promise returned by async abort during close should resolve
17 PASS promises must fulfill/reject in the expected order on closure
18 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 "closed" but got "abortPromise"
19 FAIL promises must fulfill/reject in the expected order on aborted and errored c losure assert_throws: writer.closed must reject with the error returned from the sink's close method function "function () { throw e }" threw object "TypeError: The stream is in the process of being aborted" ("TypeError") expected object "e rror1: error1" ("error1")
20 Harness: the test ran to completion.
21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698