Changeset 194329 in webkit
- Timestamp:
- Dec 21, 2015, 7:15:23 AM (11 years ago)
- Location:
- trunk/LayoutTests/imported/w3c
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
web-platform-tests/streams-api/README.txt (modified) (1 diff)
-
web-platform-tests/streams-api/readable-streams/cancel-expected.txt (modified) (2 diffs)
-
web-platform-tests/streams-api/readable-streams/cancel.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r194319 r194329 1 2015-12-21 Xabier Rodriguez Calvar <calvaris@igalia.com> 2 3 [Streams API] imported/w3c/web-platform-tests/streams-api/readable-streams/cancel.html has a flaky test 4 https://bugs.webkit.org/show_bug.cgi?id=152065 5 6 Reviewed by Youenn Fablet. 7 8 https://github.com/whatwg/streams/pull/414 and https://github.com/whatwg/streams/issues/413 was closed. Changes 9 I did on the spec were integrated so they were brought back to the imported tests in WebKit. 10 11 * web-platform-tests/streams-api/README.txt: Updated version. 12 * web-platform-tests/streams-api/readable-streams/cancel-expected.txt: Expectations. 13 * web-platform-tests/streams-api/readable-streams/cancel.js: Changed to cancel test. 14 1 15 2015-12-20 Commit Queue <commit-queue@webkit.org> 2 16 -
trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/README.txt
r194319 r194329 4 4 automatic. 5 5 6 Current version: https://github.com/whatwg/streams/tree/ 18ed463e50c189c0198e2336dfbd10b17f379081/reference-implementation/web-platform-tests6 Current version: https://github.com/whatwg/streams/tree/f7cb0eac03e6a6d045d6e8c09df1f9f8a264fdef/reference-implementation/web-platform-tests. -
trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/cancel-expected.txt
r194319 r194329 1 1 2 FAIL ReadableStream cancellation: integration test on an infinite stream derived from a random push source promise_test: Unhandled rejection with value: object "Error: forced error" 2 PASS ReadableStream cancellation: integration test on an infinite stream derived from a random push source 3 3 PASS ReadableStream cancellation: cancel(reason) should pass through the given reason to the underlying source 4 4 PASS ReadableStream cancellation: cancel() on a locked stream should fail and not call the underlying source cancel … … 12 12 FAIL Load cancel.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code 13 13 FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration') 14 FAIL ReadableStream cancellation: integration test on an infinite stream derived from a random push source promise_test: Unhandled rejection with value: object "Error: forced error"14 FAIL ReadableStream cancellation: integration test on an infinite stream derived from a random push source Can't find variable: ReadableStream 15 15 FAIL ReadableStream cancellation: cancel(reason) should pass through the given reason to the underlying source Can't find variable: ReadableStream 16 16 FAIL ReadableStream cancellation: cancel() on a locked stream should fail and not call the underlying source cancel Can't find variable: ReadableStream -
trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/cancel.js
r194319 r194329 8 8 9 9 promise_test(() => { 10 11 // WebKit edit. We force a failure in this tests for now because it is flaky.12 return Promise.reject(new Error("forced error"));13 10 14 11 const randomSource = new RandomPushSource(); … … 43 40 // We call delay multiple times to avoid cancelling too early for the 44 41 // source to enqueue at least one chunk. 45 const cancel = delay(5).then(() => delay(5)).then(() => delay(5)).then(() => reader.cancel()); 42 const cancel = delay(5).then(() => delay(5)).then(() => delay(5)).then(() => { 43 let cancelPromise = reader.cancel(); 44 assert_false(cancellationFinished, 'cancellation in source should happen later'); 45 return cancelPromise; 46 }) 46 47 47 48 return readableStreamToArray(rs, reader).then(chunks => { … … 50 51 assert_equals(chunks[i].length, 128, 'chunk ' + i + ' should have 128 bytes'); 51 52 } 52 assert_false(cancellationFinished, 'it did not wait for the cancellation process to finish before closing');53 53 return cancel; 54 54 }).then(() => {
Note:
See TracChangeset
for help on using the changeset viewer.