Changeset 195924 in webkit
- Timestamp:
- Jan 31, 2016 1:20:05 AM (8 years ago)
- Location:
- trunk/LayoutTests/imported/w3c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r195907 r195924 1 2016-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 1 14 2016-01-30 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/garbage-collection-2-expected.txt
r195583 r195924 2 2 PASS ReadableStreamController methods should continue working properly when scripts lose their reference to the readable stream 3 3 PASS 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 lost5 PASS Garbage-collecting a ReadableStreamReader should not unlock its stream6 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/garbage-collection-2.html
r195583 r195924 10 10 <script> 11 11 'use strict'; 12 fetch_tests_from_worker(new Worker('garbage-collection.js')); 12 13 promise_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 33 promise_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'); 13 48 </script>
Note: See TracChangeset
for help on using the changeset viewer.