⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 194329 in webkit


Ignore:
Timestamp:
Dec 21, 2015, 7:15:23 AM (11 years ago)
Author:
calvaris@igalia.com
Message:

[Streams API] imported/w3c/web-platform-tests/streams-api/readable-streams/cancel.html has a flaky test
​https://bugs.webkit.org/show_bug.cgi?id=152065

Reviewed by Youenn Fablet.

​https://github.com/whatwg/streams/pull/414 and ​https://github.com/whatwg/streams/issues/413 was closed. Changes
I did on the spec were integrated so they were brought back to the imported tests in WebKit.

  • web-platform-tests/streams-api/README.txt: Updated version.
  • web-platform-tests/streams-api/readable-streams/cancel-expected.txt: Expectations.
  • web-platform-tests/streams-api/readable-streams/cancel.js: Changed to cancel test.
Location:
trunk/LayoutTests/imported/w3c
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r194319 r194329  
     12015-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
    1152015-12-20  Commit Queue  <commit-queue@webkit.org>
    216
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/README.txt

    r194319 r194329  
    44automatic.
    55
    6 Current version: https://github.com/whatwg/streams/tree/18ed463e50c189c0198e2336dfbd10b17f379081/reference-implementation/web-platform-tests
     6Current 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  
    11
    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"
     2PASS ReadableStream cancellation: integration test on an infinite stream derived from a random push source
    33PASS ReadableStream cancellation: cancel(reason) should pass through the given reason to the underlying source
    44PASS ReadableStream cancellation: cancel() on a locked stream should fail and not call the underlying source cancel
    … …  
    1212FAIL Load cancel.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code
    1313FAIL 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"
     14FAIL ReadableStream cancellation: integration test on an infinite stream derived from a random push source Can't find variable: ReadableStream
    1515FAIL ReadableStream cancellation: cancel(reason) should pass through the given reason to the underlying source Can't find variable: ReadableStream
    1616FAIL 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  
    88
    99promise_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"));
    1310
    1411  const randomSource = new RandomPushSource();
    … …  
    4340  // We call delay multiple times to avoid cancelling too early for the
    4441  // 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  })
    4647
    4748  return readableStreamToArray(rs, reader).then(chunks => {
    … …  
    5051      assert_equals(chunks[i].length, 128, 'chunk ' + i + ' should have 128 bytes');
    5152    }
    52     assert_false(cancellationFinished, 'it did not wait for the cancellation process to finish before closing');
    5353    return cancel;
    5454  }).then(() => {
Note: See TracChangeset for help on using the changeset viewer.