Changeset 195924 in webkit


Ignore:
Timestamp:
Jan 31, 2016 1:20:05 AM (8 years ago)
Author:
youenn.fablet@crf.canon.fr
Message:

imported/w3c/web-platform-tests/streams-api/readable-streams/garbage-collection.html asserts frequently
https://bugs.webkit.org/show_bug.cgi?id=152436

Reviewed by Darin Adler.

GCController is not available in Worker environments, explaining probably why garbage-collection-2.html is not crashing at all.
Inlining half of the tests in garbage-collection-2.html (runned in window) to compare with garbage-collection-1.html.

  • web-platform-tests/streams-api/readable-streams/garbage-collection-2-expected.txt:
  • web-platform-tests/streams-api/readable-streams/garbage-collection-2.html:
Location:
trunk/LayoutTests/imported/w3c
Files:
3 edited

Legend:

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

    r195907 r195924  
     12016-01-31  Youenn Fablet  <youenn.fablet@crf.canon.fr>
     2
     3        imported/w3c/web-platform-tests/streams-api/readable-streams/garbage-collection.html asserts frequently
     4        https://bugs.webkit.org/show_bug.cgi?id=152436
     5
     6        Reviewed by Darin Adler.
     7
     8        GCController is not available in Worker environments, explaining probably why garbage-collection-2.html is not crashing at all.
     9        Inlining half of the tests in garbage-collection-2.html (runned in window) to compare with garbage-collection-1.html.
     10
     11        * web-platform-tests/streams-api/readable-streams/garbage-collection-2-expected.txt:
     12        * web-platform-tests/streams-api/readable-streams/garbage-collection-2.html:
     13
    1142016-01-30  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/garbage-collection-2-expected.txt

    r195583 r195924  
    22PASS ReadableStreamController methods should continue working properly when scripts lose their reference to the readable stream
    33PASS ReadableStream closed promise should fulfill even if the stream and reader JS references are lost
    4 PASS ReadableStream closed promise should reject even if stream and reader JS references are lost
    5 PASS Garbage-collecting a ReadableStreamReader should not unlock its stream
    64
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/garbage-collection-2.html

    r195583 r195924  
    1010<script>
    1111'use strict';
    12 fetch_tests_from_worker(new Worker('garbage-collection.js'));
     12
     13promise_test(() => {
     14
     15  let controller;
     16  new ReadableStream({
     17    start(c) {
     18      controller = c;
     19    }
     20  });
     21
     22  garbageCollect();
     23
     24  return delay(50).then(() => {
     25    controller.close();
     26    assert_throws(new TypeError(), () => controller.close(), 'close should throw a TypeError the second time');
     27    assert_throws(new TypeError(), () => controller.error(), 'error should throw a TypeError on a closed stream');
     28  });
     29
     30}, 'ReadableStreamController methods should continue working properly when scripts lose their reference to the ' +
     31   'readable stream');
     32
     33promise_test(() => {
     34
     35  let controller;
     36
     37  const closedPromise = new ReadableStream({
     38    start(c) {
     39      controller = c;
     40    }
     41  }).getReader().closed;
     42
     43  garbageCollect();
     44
     45  return delay(50).then(() => controller.close()).then(() => closedPromise);
     46
     47}, 'ReadableStream closed promise should fulfill even if the stream and reader JS references are lost');
    1348</script>
Note: See TracChangeset for help on using the changeset viewer.