Changeset 202338 in webkit


Ignore:
Timestamp:
Jun 22, 2016 11:14:10 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

imported/w3c/web-platform-tests/streams/readable-streams/general.https.html is a flaky failure
https://bugs.webkit.org/show_bug.cgi?id=155760

Patch by Youenn Fablet <youennf@gmail.com> on 2016-06-22
Reviewed by Alexey Proskuryakov.

Making test more predictable.
Upstreamed to w3c repository as https://github.com/w3c/web-platform-tests/pull/3203.

  • web-platform-tests/streams/readable-streams/general.js:

(promise_test):

Location:
trunk/LayoutTests/imported/w3c
Files:
2 edited

Legend:

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

    r202323 r202338  
     12016-06-22  Youenn Fablet  <youennf@gmail.com>
     2
     3        imported/w3c/web-platform-tests/streams/readable-streams/general.https.html is a flaky failure
     4        https://bugs.webkit.org/show_bug.cgi?id=155760
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Making test more predictable.
     9        Upstreamed to w3c repository as https://github.com/w3c/web-platform-tests/pull/3203.
     10
     11        * web-platform-tests/streams/readable-streams/general.js:
     12        (promise_test):
     13
    1142016-06-21  Youenn Fablet  <youennf@gmail.com>
    215
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams/readable-streams/general.js

    r200309 r202338  
    294294
    295295  let pullCount = 0;
    296 
    297   const rs = new ReadableStream({
     296  const startPromise = Promise.resolve();
     297
     298  const rs = new ReadableStream({
     299    start() {
     300      return startPromise;
     301    },
    298302    pull(c) {
    299303      // Don't enqueue immediately after start. We want the stream to be empty when we call .read() on it.
     
    305309  });
    306310
    307   // WEBKIT modification: delay(1) replaced by delay(10) to ensure that pull promise is resolved before calling below thened code.
    308   return delay(10).then(() => {
     311  return startPromise.then(() => {
    309312    assert_equals(pullCount, 1, 'pull should be called once start finishes');
    310 
     313  }).then(() => {
    311314    const reader = rs.getReader();
    312315    const read = reader.read();
Note: See TracChangeset for help on using the changeset viewer.