Changeset 195101 in webkit


Ignore:
Timestamp:
Jan 15, 2016 1:14:36 AM (8 years ago)
Author:
youenn.fablet@crf.canon.fr
Message:

[Streams API] Expose ReadableStream and relatives to Worker
https://bugs.webkit.org/show_bug.cgi?id=152066

Reviewed by Darin Adler.

LayoutTests/imported/w3c:

Rebasing tests as Worker tests are now running.

  • web-platform-tests/streams-api/byte-length-queuing-strategy-expected.txt:
  • web-platform-tests/streams-api/count-queuing-strategy-expected.txt:
  • web-platform-tests/streams-api/readable-streams/bad-underlying-sources-expected.txt:
  • web-platform-tests/streams-api/readable-streams/bad-strategies-expected.txt:
  • web-platform-tests/streams-api/readable-streams/brand-checks-expected.txt:
  • web-platform-tests/streams-api/readable-streams/cancel-expected.txt:
  • web-platform-tests/streams-api/readable-streams/count-queuing-strategy-integration-expected.txt:
  • web-platform-tests/streams-api/readable-streams/garbage-collection-expected.txt:
  • web-platform-tests/streams-api/readable-streams/general-expected.txt:
  • web-platform-tests/streams-api/readable-streams/pipe-through-expected.txt:
  • web-platform-tests/streams-api/readable-streams/readable-stream-reader-expected.txt:
  • web-platform-tests/streams-api/readable-streams/tee-expected.txt:
  • web-platform-tests/streams-api/readable-streams/templated-expected.txt:

Source/WebCore:

Covered by rebased tests.

  • Modules/streams/ByteLengthQueuingStrategy.idl:
  • Modules/streams/CountQueuingStrategy.idl:
  • Modules/streams/ReadableStream.idl:
  • Modules/streams/ReadableStreamController.idl:
  • Modules/streams/ReadableStreamReader.idl:

LayoutTests:

Rebasing tests as ReadableStream is now available in workers.

  • js/dom/global-constructors-attributes-dedicated-worker-expected.txt:
  • platform/efl/js/dom/global-constructors-attributes-dedicated-worker-expected.txt:
Location:
trunk
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r195100 r195101  
     12016-01-15  Youenn Fablet  <youenn.fablet@crf.canon.fr>
     2
     3        [Streams API] Expose ReadableStream and relatives to Worker
     4        https://bugs.webkit.org/show_bug.cgi?id=152066
     5
     6        Reviewed by Darin Adler.
     7
     8        Rebasing tests as ReadableStream is now available in workers.
     9
     10        * js/dom/global-constructors-attributes-dedicated-worker-expected.txt:
     11        * platform/efl/js/dom/global-constructors-attributes-dedicated-worker-expected.txt:
     12
    1132016-01-15  Youenn Fablet  <youenn.fablet@crf.canon.fr>
    214
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r195091 r195101  
     12016-01-15  Youenn Fablet  <youenn.fablet@crf.canon.fr>
     2
     3        [Streams API] Expose ReadableStream and relatives to Worker
     4        https://bugs.webkit.org/show_bug.cgi?id=152066
     5
     6        Reviewed by Darin Adler.
     7
     8        Rebasing tests as Worker tests are now running.
     9
     10        * web-platform-tests/streams-api/byte-length-queuing-strategy-expected.txt:
     11        * web-platform-tests/streams-api/count-queuing-strategy-expected.txt:
     12        * web-platform-tests/streams-api/readable-streams/bad-underlying-sources-expected.txt:
     13        * web-platform-tests/streams-api/readable-streams/bad-strategies-expected.txt:
     14        * web-platform-tests/streams-api/readable-streams/brand-checks-expected.txt:
     15        * web-platform-tests/streams-api/readable-streams/cancel-expected.txt:
     16        * web-platform-tests/streams-api/readable-streams/count-queuing-strategy-integration-expected.txt:
     17        * web-platform-tests/streams-api/readable-streams/garbage-collection-expected.txt:
     18        * web-platform-tests/streams-api/readable-streams/general-expected.txt:
     19        * web-platform-tests/streams-api/readable-streams/pipe-through-expected.txt:
     20        * web-platform-tests/streams-api/readable-streams/readable-stream-reader-expected.txt:
     21        * web-platform-tests/streams-api/readable-streams/tee-expected.txt:
     22        * web-platform-tests/streams-api/readable-streams/templated-expected.txt:
     23
    1242016-01-14  Ryosuke Niwa  <rniwa@webkit.org>
    225
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/byte-length-queuing-strategy-expected.txt

    r194319 r195101  
    99FAIL Load byte-length-queuing-strategy.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code
    1010FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration')
    11 FAIL Can construct a ByteLengthQueuingStrategy with a valid high water mark Can't find variable: ByteLengthQueuingStrategy
    12 FAIL Can construct a ByteLengthQueuingStrategy with any value as its high water mark Can't find variable: ByteLengthQueuingStrategy
    13 FAIL ByteLengthQueuingStrategy constructor behaves as expected with strange arguments assert_throws: construction fails with undefined function "() => new ByteLengthQueuingStrategy()" threw object "ReferenceError: Can't find variable: ByteLengthQueuingStr..." ("ReferenceError") expected object "[object Object]" ("TypeError")
    14 FAIL ByteLengthQueuingStrategy size behaves as expected with strange arguments assert_throws: size fails with undefined function "() => ByteLengthQueuingStrategy.prototype.size()" threw object "ReferenceError: Can't find variable: ByteLengthQueuingStr..." ("ReferenceError") expected object "[object Object]" ("TypeError")
    15 FAIL ByteLengthQueuingStrategy.prototype.size should work generically on its this and its arguments Can't find variable: ByteLengthQueuingStrategy
    16 FAIL ByteLengthQueuingStrategy instances have the correct properties Can't find variable: ByteLengthQueuingStrategy
    17 FAIL ByteLengthQueuingStrategy's highWaterMark property can be set to anything Can't find variable: ByteLengthQueuingStrategy
     11PASS Can construct a ByteLengthQueuingStrategy with a valid high water mark
     12PASS Can construct a ByteLengthQueuingStrategy with any value as its high water mark
     13PASS ByteLengthQueuingStrategy constructor behaves as expected with strange arguments
     14PASS ByteLengthQueuingStrategy size behaves as expected with strange arguments
     15PASS ByteLengthQueuingStrategy.prototype.size should work generically on its this and its arguments
     16PASS ByteLengthQueuingStrategy instances have the correct properties
     17PASS ByteLengthQueuingStrategy's highWaterMark property can be set to anything
    1818
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/count-queuing-strategy-expected.txt

    r194319 r195101  
    99FAIL Load count-queuing-strategy.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code
    1010FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration')
    11 FAIL Can construct a CountQueuingStrategy with a valid high water mark Can't find variable: CountQueuingStrategy
    12 FAIL Can construct a CountQueuingStrategy with any value as its high water mark Can't find variable: CountQueuingStrategy
    13 FAIL CountQueuingStrategy constructor behaves as expected with strange arguments assert_throws: construction fails with undefined function "() => new CountQueuingStrategy()" threw object "ReferenceError: Can't find variable: CountQueuingStrategy" ("ReferenceError") expected object "[object Object]" ("TypeError")
    14 FAIL CountQueuingStrategy.prototype.size should work generically on its this and its arguments Can't find variable: CountQueuingStrategy
    15 FAIL CountQueuingStrategy size behaves as expected with strange arguments Can't find variable: CountQueuingStrategy
    16 FAIL CountQueuingStrategy instances have the correct properties Can't find variable: CountQueuingStrategy
    17 FAIL CountQueuingStrategy's highWaterMark property can be set to anything Can't find variable: CountQueuingStrategy
     11PASS Can construct a CountQueuingStrategy with a valid high water mark
     12PASS Can construct a CountQueuingStrategy with any value as its high water mark
     13PASS CountQueuingStrategy constructor behaves as expected with strange arguments
     14PASS CountQueuingStrategy.prototype.size should work generically on its this and its arguments
     15PASS CountQueuingStrategy size behaves as expected with strange arguments
     16PASS CountQueuingStrategy instances have the correct properties
     17PASS CountQueuingStrategy's highWaterMark property can be set to anything
    1818
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/bad-strategies-expected.txt

    r194391 r195101  
    99FAIL Load bad-strategies.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code
    1010FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration')
    11 FAIL Readable stream: throwing strategy.size getter assert_throws: construction should re-throw the error function "() => {
    12     new ReadableStream({}, {
    13       get size() {
    14  ..." threw object "ReferenceError: Can't find variable: ReadableStream" ("ReferenceError") expected object "Error: a unique string" ("Error")
    15 FAIL Readable stream: strategy.size errors the stream and then throws Can't find variable: ReadableStream
    16 FAIL Readable stream: strategy.size errors the stream and then returns Infinity Can't find variable: ReadableStream
    17 FAIL Readable stream: throwing strategy.size method Can't find variable: ReadableStream
    18 FAIL Readable stream: throwing strategy.highWaterMark getter assert_throws: construction should re-throw the error function "() => {
    19     new ReadableStream({}, {
    20       size() {
    21      ..." threw object "ReferenceError: Can't find variable: ReadableStream" ("ReferenceError") expected object "Error: a unique string" ("Error")
    22 FAIL Readable stream: invalid strategy.highWaterMark assert_throws: construction should throw a RangeError for -1 function "() => {
    23       new ReadableStream({}, {
    24         size() {
    25  ..." threw object "ReferenceError: Can't find variable: ReadableStream" ("ReferenceError") expected object "RangeError" ("RangeError")
    26 FAIL Readable stream: invalid strategy.size return value Can't find variable: ReadableStream
     11PASS Readable stream: throwing strategy.size getter
     12PASS Readable stream: strategy.size errors the stream and then throws
     13PASS Readable stream: strategy.size errors the stream and then returns Infinity
     14PASS Readable stream: throwing strategy.size method
     15PASS Readable stream: throwing strategy.highWaterMark getter
     16PASS Readable stream: invalid strategy.highWaterMark
     17PASS Readable stream: invalid strategy.size return value
    2718
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/bad-underlying-sources-expected.txt

    r194319 r195101  
    2323FAIL Load bad-underlying-sources.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code
    2424FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration')
    25 FAIL Underlying source start: throwing getter assert_throws: constructing the stream should re-throw the error function "() => {
    26     new ReadableStream({
    27       get start() {
    28     ..." threw object "ReferenceError: Can't find variable: ReadableStream" ("ReferenceError") expected object "Error: a unique string" ("Error")
    29 FAIL Underlying source start: throwing method assert_throws: constructing the stream should re-throw the error function "() => {
    30     new ReadableStream({
    31       start() {
    32         ..." threw object "ReferenceError: Can't find variable: ReadableStream" ("ReferenceError") expected object "Error: a unique string" ("Error")
    33 FAIL Underlying source: throwing pull getter (initial pull) Can't find variable: ReadableStream
    34 FAIL Underlying source: throwing pull method (initial pull) Can't find variable: ReadableStream
    35 FAIL Underlying source pull: throwing getter (second pull) Can't find variable: ReadableStream
    36 FAIL Underlying source pull: throwing method (second pull) Can't find variable: ReadableStream
    37 FAIL Underlying source cancel: throwing getter Can't find variable: ReadableStream
    38 FAIL Underlying source cancel: throwing method Can't find variable: ReadableStream
    39 FAIL Underlying source: calling enqueue on an empty canceled stream should not throw Can't find variable: ReadableStream
    40 FAIL Underlying source: calling enqueue on a non-empty canceled stream should not throw Can't find variable: ReadableStream
    41 FAIL Underlying source: calling enqueue on a closed stream should throw Can't find variable: ReadableStream
    42 FAIL Underlying source: calling enqueue on an errored stream should throw Can't find variable: ReadableStream
    43 FAIL Underlying source: calling close twice on an empty stream should throw the second time Can't find variable: ReadableStream
    44 FAIL Underlying source: calling close twice on a non-empty stream should throw the second time Can't find variable: ReadableStream
    45 FAIL Underlying source: calling close on an empty canceled stream should not throw Can't find variable: ReadableStream
    46 FAIL Underlying source: calling close on a non-empty canceled stream should not throw Can't find variable: ReadableStream
    47 FAIL Underlying source: calling close after error should throw Can't find variable: ReadableStream
    48 FAIL Underlying source: calling error twice should throw the second time Can't find variable: ReadableStream
    49 FAIL Underlying source: calling error after close should throw Can't find variable: ReadableStream
    50 FAIL Underlying source: calling error and returning a rejected promise from start should cause the stream to error with the first error Can't find variable: ReadableStream
    51 FAIL Underlying source: calling error and returning a rejected promise from pull should cause the stream to error with the first error Can't find variable: ReadableStream
     25PASS Underlying source start: throwing getter
     26PASS Underlying source start: throwing method
     27PASS Underlying source: throwing pull getter (initial pull)
     28PASS Underlying source: throwing pull method (initial pull)
     29PASS Underlying source pull: throwing getter (second pull)
     30PASS Underlying source pull: throwing method (second pull)
     31PASS Underlying source cancel: throwing getter
     32PASS Underlying source cancel: throwing method
     33PASS Underlying source: calling enqueue on an empty canceled stream should not throw
     34PASS Underlying source: calling enqueue on a non-empty canceled stream should not throw
     35PASS Underlying source: calling enqueue on a closed stream should throw
     36PASS Underlying source: calling enqueue on an errored stream should throw
     37PASS Underlying source: calling close twice on an empty stream should throw the second time
     38PASS Underlying source: calling close twice on a non-empty stream should throw the second time
     39PASS Underlying source: calling close on an empty canceled stream should not throw
     40PASS Underlying source: calling close on a non-empty canceled stream should not throw
     41PASS Underlying source: calling close after error should throw
     42PASS Underlying source: calling error twice should throw the second time
     43PASS Underlying source: calling error after close should throw
     44PASS Underlying source: calling error and returning a rejected promise from start should cause the stream to error with the first error
     45PASS Underlying source: calling error and returning a rejected promise from pull should cause the stream to error with the first error
    5246
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/brand-checks-expected.txt

    r194319 r195101  
    1717FAIL Load brand-checks.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code
    1818FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration')
    19 FAIL Can get the ReadableStreamReader constructor indirectly Can't find variable: ReadableStream
    20 FAIL Can get the ReadableStreamController constructor indirectly Can't find variable: ReadableStream
    21 FAIL ReadableStream.prototype.cancel enforces a brand check Can't find variable: ReadableStream
    22 FAIL ReadableStream.prototype.getReader enforces a brand check Can't find variable: ReadableStream
    23 FAIL ReadableStream.prototype.tee enforces a brand check Can't find variable: ReadableStream
     19PASS Can get the ReadableStreamReader constructor indirectly
     20PASS Can get the ReadableStreamController constructor indirectly
     21PASS ReadableStream.prototype.cancel enforces a brand check
     22PASS ReadableStream.prototype.getReader enforces a brand check
     23PASS ReadableStream.prototype.tee enforces a brand check
    2424PASS ReadableStreamReader enforces a brand check on its argument
    25 FAIL ReadableStreamReader.prototype.closed enforces a brand check undefined is not an object (evaluating 'ReadableStreamReader.prototype')
    26 FAIL ReadableStreamReader.prototype.cancel enforces a brand check undefined is not an object (evaluating 'ReadableStreamReader.prototype')
    27 FAIL ReadableStreamReader.prototype.read enforces a brand check undefined is not an object (evaluating 'ReadableStreamReader.prototype')
    28 FAIL ReadableStreamReader.prototype.releaseLock enforces a brand check undefined is not an object (evaluating 'ReadableStreamReader.prototype')
     25PASS ReadableStreamReader.prototype.closed enforces a brand check
     26PASS ReadableStreamReader.prototype.cancel enforces a brand check
     27PASS ReadableStreamReader.prototype.read enforces a brand check
     28PASS ReadableStreamReader.prototype.releaseLock enforces a brand check
    2929PASS ReadableStreamController enforces a brand check on its argument
    30 FAIL ReadableStreamController can't be given a fully-constructed ReadableStream assert_throws: Constructing a ReadableStreamController should throw function "() => new ReadableStreamController(realReadableStream())" threw object "ReferenceError: Can't find variable: ReadableStream" ("ReferenceError") expected object "TypeError" ("TypeError")
    31 FAIL ReadableStreamController.prototype.close enforces a brand check undefined is not an object (evaluating 'ReadableStreamController.prototype')
    32 FAIL ReadableStreamController.prototype.enqueue enforces a brand check undefined is not an object (evaluating 'ReadableStreamController.prototype')
    33 FAIL ReadableStreamController.prototype.error enforces a brand check undefined is not an object (evaluating 'ReadableStreamController.prototype')
     30PASS ReadableStreamController can't be given a fully-constructed ReadableStream
     31PASS ReadableStreamController.prototype.close enforces a brand check
     32PASS ReadableStreamController.prototype.enqueue enforces a brand check
     33PASS ReadableStreamController.prototype.error enforces a brand check
    3434
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/cancel-expected.txt

    r194329 r195101  
    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 Can't find variable: ReadableStream
    15 FAIL ReadableStream cancellation: cancel(reason) should pass through the given reason to the underlying source Can't find variable: ReadableStream
    16 FAIL ReadableStream cancellation: cancel() on a locked stream should fail and not call the underlying source cancel Can't find variable: ReadableStream
    17 FAIL ReadableStream cancellation: should fulfill promise when cancel callback went fine Can't find variable: ReadableStream
    18 FAIL ReadableStream cancellation: returning a value from the underlying source's cancel should not affect the fulfillment value of the promise returned by the stream's cancel Can't find variable: ReadableStream
    19 FAIL ReadableStream cancellation: should reject promise when cancel callback raises an exception Can't find variable: ReadableStream
    20 FAIL ReadableStream cancellation: if the underlying source's cancel method returns a promise, the promise returned by the stream's cancel should fulfill when that one does (1) Can't find variable: ReadableStream
    21 FAIL ReadableStream cancellation: if the underlying source's cancel method returns a promise, the promise returned by the stream's cancel should fulfill when that one does (2) Can't find variable: ReadableStream
    22 FAIL ReadableStream cancellation: if the underlying source's cancel method returns a promise, the promise returned by the stream's cancel should reject when that one does Can't find variable: ReadableStream
    23 FAIL ReadableStream cancellation: cancelling before start finishes should prevent pull() from being called Can't find variable: ReadableStream
     14PASS ReadableStream cancellation: integration test on an infinite stream derived from a random push source
     15PASS ReadableStream cancellation: cancel(reason) should pass through the given reason to the underlying source
     16PASS ReadableStream cancellation: cancel() on a locked stream should fail and not call the underlying source cancel
     17PASS ReadableStream cancellation: should fulfill promise when cancel callback went fine
     18PASS ReadableStream cancellation: returning a value from the underlying source's cancel should not affect the fulfillment value of the promise returned by the stream's cancel
     19PASS ReadableStream cancellation: should reject promise when cancel callback raises an exception
     20PASS ReadableStream cancellation: if the underlying source's cancel method returns a promise, the promise returned by the stream's cancel should fulfill when that one does (1)
     21PASS ReadableStream cancellation: if the underlying source's cancel method returns a promise, the promise returned by the stream's cancel should fulfill when that one does (2)
     22PASS ReadableStream cancellation: if the underlying source's cancel method returns a promise, the promise returned by the stream's cancel should reject when that one does
     23PASS ReadableStream cancellation: cancelling before start finishes should prevent pull() from being called
    2424
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/count-queuing-strategy-integration-expected.txt

    r194319 r195101  
    66FAIL Load count-queuing-strategy-integration.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code
    77FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration')
    8 FAIL Can construct a readable stream with a valid CountQueuingStrategy Can't find variable: ReadableStream
    9 FAIL Correctly governs a ReadableStreamController's desiredSize property (HWM = 0) Can't find variable: ReadableStream
    10 FAIL Correctly governs a ReadableStreamController's desiredSize property (HWM = 1) Can't find variable: ReadableStream
    11 FAIL Correctly governs a ReadableStreamController's desiredSize property (HWM = 4) Can't find variable: ReadableStream
     8PASS Can construct a readable stream with a valid CountQueuingStrategy
     9PASS Correctly governs a ReadableStreamController's desiredSize property (HWM = 0)
     10PASS Correctly governs a ReadableStreamController's desiredSize property (HWM = 1)
     11PASS Correctly governs a ReadableStreamController's desiredSize property (HWM = 4)
    1212
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/garbage-collection-expected.txt

    r194319 r195101  
    66FAIL Load garbage-collection.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code
    77FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration')
    8 FAIL ReadableStreamController methods should continue working properly when scripts lose their reference to the readable stream Can't find variable: ReadableStream
    9 FAIL ReadableStream closed promise should fulfill even if the stream and reader JS references are lost Can't find variable: ReadableStream
    10 FAIL ReadableStream closed promise should reject even if stream and reader JS references are lost Can't find variable: ReadableStream
    11 FAIL Garbage-collecting a ReadableStreamReader should not unlock its stream Can't find variable: ReadableStream
     8PASS ReadableStreamController methods should continue working properly when scripts lose their reference to the readable stream
     9PASS ReadableStream closed promise should fulfill even if the stream and reader JS references are lost
     10PASS ReadableStream closed promise should reject even if stream and reader JS references are lost
     11PASS Garbage-collecting a ReadableStreamReader should not unlock its stream
    1212
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/general-expected.txt

    r194319 r195101  
    3535FAIL Load general.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code
    3636FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration')
    37 FAIL ReadableStream can be constructed with no errors Can't find variable: ReadableStream
    38 FAIL ReadableStream can't be constructed with garbage assert_throws: constructor should throw when the source is null function "() => new ReadableStream(null)" threw object "ReferenceError: Can't find variable: ReadableStream" ("ReferenceError") expected object "TypeError" ("TypeError")
    39 FAIL ReadableStream instances should have the correct list of properties Can't find variable: ReadableStream
    40 FAIL ReadableStream constructor should throw for non-function start arguments assert_throws: constructor should throw when start is not a function function "() => {
    41     new ReadableStream({ start: 'potato' });
    42   }" threw object "ReferenceError: Can't find variable: ReadableStream" ("ReferenceError") expected object "TypeError" ("TypeError")
    43 FAIL ReadableStream constructor can get initial garbage as cancel argument Can't find variable: ReadableStream
    44 FAIL ReadableStream constructor can get initial garbage as pull argument Can't find variable: ReadableStream
    45 FAIL ReadableStream start should be called with the proper parameters Can't find variable: ReadableStream
    46 FAIL ReadableStream start controller parameter should be extensible Can't find variable: ReadableStream
    47 FAIL ReadableStream should be able to call start method within prototype chain of its source Can't find variable: ReadableStream
    48 FAIL ReadableStream start should be able to return a promise Can't find variable: ReadableStream
    49 FAIL ReadableStream start should be able to return a promise and reject it Can't find variable: ReadableStream
    50 FAIL ReadableStream should be able to enqueue different objects. Can't find variable: ReadableStream
    51 FAIL ReadableStream: if pull rejects, it should error the stream Can't find variable: ReadableStream
    52 FAIL ReadableStream: should only call pull once upon starting the stream Can't find variable: ReadableStream
    53 FAIL ReadableStream: should call pull when trying to read from a started, empty stream Can't find variable: ReadableStream
    54 FAIL ReadableStream: should only call pull once on a non-empty stream read from before start fulfills Can't find variable: ReadableStream
    55 FAIL ReadableStream: should only call pull once on a non-empty stream read from after start fulfills Can't find variable: ReadableStream
    56 FAIL ReadableStream: should call pull in reaction to read()ing the last chunk, if not draining Can't find variable: ReadableStream
    57 FAIL ReadableStream: should not call pull() in reaction to read()ing the last chunk, if draining Can't find variable: ReadableStream
    58 FAIL ReadableStream: should not call pull until the previous pull call's promise fulfills Can't find variable: ReadableStream
    59 FAIL ReadableStream: should pull after start, and after every read Can't find variable: ReadableStream
    60 FAIL ReadableStream: should not call pull after start if the stream is now closed Can't find variable: ReadableStream
    61 FAIL ReadableStream: should call pull after enqueueing from inside pull (with no read requests), if strategy allows Can't find variable: ReadableStream
    62 FAIL ReadableStream pull should be able to close a stream. Can't find variable: ReadableStream
    63 FAIL ReadableStream: enqueue should throw when the stream is readable but draining Can't find variable: ReadableStream
    64 FAIL ReadableStream: enqueue should throw when the stream is closed Can't find variable: ReadableStream
    65 FAIL ReadableStream: enqueue should throw the stored error when the stream is errored Can't find variable: ReadableStream
    66 FAIL ReadableStream: should call underlying source methods as methods Can't find variable: ReadableStream
    67 FAIL ReadableStream strategies: the default strategy should give desiredSize of 1 to start, decreasing by 1 per enqueue Can't find variable: ReadableStream
    68 FAIL ReadableStream strategies: the default strategy should continue giving desiredSize of 1 if the chunks are read immediately Can't find variable: ReadableStream
    69 FAIL ReadableStream integration test: adapting a random push source Can't find variable: ReadableStream
    70 FAIL ReadableStream integration test: adapting a sync pull source Can't find variable: ReadableStream
    71 FAIL ReadableStream integration test: adapting an async pull source Can't find variable: ReadableStream
     37PASS ReadableStream can be constructed with no errors
     38PASS ReadableStream can't be constructed with garbage
     39FAIL ReadableStream instances should have the correct list of properties assert_false: method should be non-enumerable expected false got true
     40PASS ReadableStream constructor should throw for non-function start arguments
     41PASS ReadableStream constructor can get initial garbage as cancel argument
     42PASS ReadableStream constructor can get initial garbage as pull argument
     43FAIL ReadableStream start should be called with the proper parameters assert_false: close should be non-enumerable expected false got true
     44PASS ReadableStream start controller parameter should be extensible
     45PASS ReadableStream should be able to call start method within prototype chain of its source
     46PASS ReadableStream start should be able to return a promise
     47PASS ReadableStream start should be able to return a promise and reject it
     48PASS ReadableStream should be able to enqueue different objects.
     49PASS ReadableStream: if pull rejects, it should error the stream
     50PASS ReadableStream: should only call pull once upon starting the stream
     51PASS ReadableStream: should call pull when trying to read from a started, empty stream
     52PASS ReadableStream: should only call pull once on a non-empty stream read from before start fulfills
     53PASS ReadableStream: should only call pull once on a non-empty stream read from after start fulfills
     54PASS ReadableStream: should call pull in reaction to read()ing the last chunk, if not draining
     55PASS ReadableStream: should not call pull() in reaction to read()ing the last chunk, if draining
     56PASS ReadableStream: should not call pull until the previous pull call's promise fulfills
     57PASS ReadableStream: should pull after start, and after every read
     58PASS ReadableStream: should not call pull after start if the stream is now closed
     59PASS ReadableStream: should call pull after enqueueing from inside pull (with no read requests), if strategy allows
     60PASS ReadableStream pull should be able to close a stream.
     61PASS ReadableStream: enqueue should throw when the stream is readable but draining
     62PASS ReadableStream: enqueue should throw when the stream is closed
     63PASS ReadableStream: enqueue should throw the stored error when the stream is errored
     64PASS ReadableStream: should call underlying source methods as methods
     65PASS ReadableStream strategies: the default strategy should give desiredSize of 1 to start, decreasing by 1 per enqueue
     66PASS ReadableStream strategies: the default strategy should continue giving desiredSize of 1 if the chunks are read immediately
     67PASS ReadableStream integration test: adapting a random push source
     68PASS ReadableStream integration test: adapting a sync pull source
     69PASS ReadableStream integration test: adapting an async pull source
    7270
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/pipe-through-expected.txt

    r194319 r195101  
    77FAIL Load pipe-through.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code
    88FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration')
    9 FAIL ReadableStream.prototype.pipeThrough should work generically on its this and its arguments Can't find variable: ReadableStream
    10 FAIL ReadableStream.prototype.pipeThrough should throw when its first argument is not convertible to an object Can't find variable: ReadableStream
    11 FAIL ReadableStream.prototype.pipeThrough should throw when "this" has no pipeTo method Can't find variable: ReadableStream
    12 FAIL ReadableStream.prototype.pipeThrough should rethrow errors from accessing pipeTo, readable, or writable assert_throws: pipeThrough should rethrow the error thrown by pipeTo function "() => ReadableStream.prototype.pipeThrough.call(throwingP..." threw object "ReferenceError: Can't find variable: ReadableStream" ("ReferenceError") expected object "Error: potato" ("Error")
    13 FAIL ReadableStream.prototype.pipeThrough should work with missing readable, writable, or options Can't find variable: ReadableStream
     9PASS ReadableStream.prototype.pipeThrough should work generically on its this and its arguments
     10PASS ReadableStream.prototype.pipeThrough should throw when its first argument is not convertible to an object
     11PASS ReadableStream.prototype.pipeThrough should throw when "this" has no pipeTo method
     12PASS ReadableStream.prototype.pipeThrough should rethrow errors from accessing pipeTo, readable, or writable
     13PASS ReadableStream.prototype.pipeThrough should work with missing readable, writable, or options
    1414
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/readable-stream-reader-expected.txt

    r194319 r195101  
    2828FAIL Load readable-stream-reader.js with SharedWorker assert_unreached: SharedWorker is unavailable Reached unreachable code
    2929FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration')
    30 FAIL Can get the ReadableStreamReader constructor indirectly Can't find variable: ReadableStream
     30PASS Can get the ReadableStreamReader constructor indirectly
    3131PASS ReadableStreamReader constructor should get a ReadableStream object as argument
    32 FAIL ReadableStreamReader instances should have the correct list of properties Can't find variable: ReadableStream
    33 FAIL ReadableStreamReader closed should always return the same promise object Can't find variable: ReadableStream
    34 FAIL Constructing a ReadableStreamReader directly should fail if the stream is already locked (via direct construction) Can't find variable: ReadableStream
    35 FAIL Getting a ReadableStreamReader via getReader should fail if the stream is already locked (via direct construction) Can't find variable: ReadableStream
    36 FAIL Constructing a ReadableStreamReader directly should fail if the stream is already locked (via getReader) Can't find variable: ReadableStream
    37 FAIL Getting a ReadableStreamReader via getReader should fail if the stream is already locked (via getReader) Can't find variable: ReadableStream
    38 FAIL Constructing a ReadableStreamReader directly should be OK if the stream is closed Can't find variable: ReadableStream
    39 FAIL Constructing a ReadableStreamReader directly should be OK if the stream is errored Can't find variable: ReadableStream
    40 FAIL Reading from a reader for an empty stream will wait until a chunk is available Can't find variable: ReadableStream
    41 FAIL cancel() on a reader does not release the reader Can't find variable: ReadableStream
    42 FAIL closed should be fulfilled after stream is closed (.closed access before acquiring) Can't find variable: ReadableStream
    43 FAIL closed should be rejected after reader releases its lock (multiple stream locks) Can't find variable: ReadableStream
    44 FAIL Multiple readers can access the stream in sequence Can't find variable: ReadableStream
    45 FAIL Cannot use an already-released reader to unlock a stream again Can't find variable: ReadableStream
    46 FAIL cancel() on a released reader is a no-op and does not pass through Can't find variable: ReadableStream
    47 FAIL Getting a second reader after erroring the stream and releasing the reader should succeed Can't find variable: ReadableStream
    48 FAIL ReadableStreamReader closed promise should be rejected with undefined if that is the error Can't find variable: ReadableStream
    49 FAIL ReadableStreamReader: if start rejects with no parameter, it should error the stream with an undefined error Can't find variable: ReadableStream
    50 FAIL Erroring a ReadableStream after checking closed should reject ReadableStreamReader closed promise Can't find variable: ReadableStream
    51 FAIL Erroring a ReadableStream before checking closed should reject ReadableStreamReader closed promise Can't find variable: ReadableStream
    52 FAIL Reading twice on a stream that gets closed Can't find variable: ReadableStream
    53 FAIL Reading twice on a closed stream Can't find variable: ReadableStream
    54 FAIL Reading twice on an errored stream Can't find variable: ReadableStream
    55 FAIL Reading twice on a stream that gets errored Can't find variable: ReadableStream
     32FAIL ReadableStreamReader instances should have the correct list of properties assert_equals: method should be non-enumerable expected false but got true
     33PASS ReadableStreamReader closed should always return the same promise object
     34PASS Constructing a ReadableStreamReader directly should fail if the stream is already locked (via direct construction)
     35PASS Getting a ReadableStreamReader via getReader should fail if the stream is already locked (via direct construction)
     36PASS Constructing a ReadableStreamReader directly should fail if the stream is already locked (via getReader)
     37PASS Getting a ReadableStreamReader via getReader should fail if the stream is already locked (via getReader)
     38PASS Constructing a ReadableStreamReader directly should be OK if the stream is closed
     39PASS Constructing a ReadableStreamReader directly should be OK if the stream is errored
     40PASS Reading from a reader for an empty stream will wait until a chunk is available
     41PASS cancel() on a reader does not release the reader
     42PASS closed should be fulfilled after stream is closed (.closed access before acquiring)
     43PASS closed should be rejected after reader releases its lock (multiple stream locks)
     44PASS Multiple readers can access the stream in sequence
     45PASS Cannot use an already-released reader to unlock a stream again
     46PASS cancel() on a released reader is a no-op and does not pass through
     47PASS Getting a second reader after erroring the stream and releasing the reader should succeed
     48PASS ReadableStreamReader closed promise should be rejected with undefined if that is the error
     49PASS ReadableStreamReader: if start rejects with no parameter, it should error the stream with an undefined error
     50PASS Erroring a ReadableStream after checking closed should reject ReadableStreamReader closed promise
     51PASS Erroring a ReadableStream before checking closed should reject ReadableStreamReader closed promise
     52PASS Reading twice on a stream that gets closed
     53PASS Reading twice on a closed stream
     54PASS Reading twice on an errored stream
     55PASS Reading twice on a stream that gets errored
    5656
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/tee-expected.txt

    r194319 r195101  
    1212FAIL Load tee.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 teeing: rs.tee() returns an array of two ReadableStreams Can't find variable: ReadableStream
    15 FAIL ReadableStream teeing: should be able to read one branch to the end without affecting the other Can't find variable: ReadableStream
    16 FAIL ReadableStream teeing: values should be equal across each branch Can't find variable: ReadableStream
    17 FAIL ReadableStream teeing: errors in the source should propagate to both branches Can't find variable: ReadableStream
    18 FAIL ReadableStream teeing: canceling branch1 should not impact branch2 Can't find variable: ReadableStream
    19 FAIL ReadableStream teeing: canceling branch2 should not impact branch2 Can't find variable: ReadableStream
    20 FAIL ReadableStream teeing: canceling both branches should aggregate the cancel reasons into an array Can't find variable: ReadableStream
    21 FAIL ReadableStream teeing: failing to cancel the original stream should cause cancel() to reject on branches Can't find variable: ReadableStream
    22 FAIL ReadableStream teeing: closing the original should immediately close the branches Can't find variable: ReadableStream
    23 FAIL ReadableStream teeing: erroring the original should immediately error the branches Can't find variable: ReadableStream
     14PASS ReadableStream teeing: rs.tee() returns an array of two ReadableStreams
     15PASS ReadableStream teeing: should be able to read one branch to the end without affecting the other
     16PASS ReadableStream teeing: values should be equal across each branch
     17PASS ReadableStream teeing: errors in the source should propagate to both branches
     18PASS ReadableStream teeing: canceling branch1 should not impact branch2
     19PASS ReadableStream teeing: canceling branch2 should not impact branch2
     20PASS ReadableStream teeing: canceling both branches should aggregate the cancel reasons into an array
     21PASS ReadableStream teeing: failing to cancel the original stream should cause cancel() to reject on branches
     22PASS ReadableStream teeing: closing the original should immediately close the branches
     23PASS ReadableStream teeing: erroring the original should immediately error the branches
    2424
  • trunk/LayoutTests/imported/w3c/web-platform-tests/streams-api/readable-streams/templated-expected.txt

    r194319 r195101  
    8888FAIL Untitled undefined is not an object (evaluating 'navigator.serviceWorker.getRegistration')
    8989PASS Running templatedRSEmpty with ReadableStream (empty)
    90 FAIL instances have the correct methods and properties Can't find variable: ReadableStream
     90PASS instances have the correct methods and properties
    9191PASS Running templatedRSEmptyReader with ReadableStream (empty) reader
    92 FAIL instances have the correct methods and properties Can't find variable: ReadableStream
    93 FAIL locked should be true Can't find variable: ReadableStream
    94 FAIL read() should never settle Can't find variable: ReadableStream
    95 FAIL two read()s should both never settle Can't find variable: ReadableStream
    96 FAIL read() should return distinct promises each time Can't find variable: ReadableStream
    97 FAIL getReader() again on the stream should fail Can't find variable: ReadableStream
    98 FAIL releasing the lock with pending read requests should throw but the read requests should stay pending Can't find variable: ReadableStream
    99 FAIL releasing the lock should cause further read() calls to reject with a TypeError Can't find variable: ReadableStream
    100 FAIL releasing the lock should cause closed calls to reject with a TypeError Can't find variable: ReadableStream
    101 FAIL releasing the lock should cause locked to become false Can't find variable: ReadableStream
    102 FAIL canceling via the reader should cause the reader to act closed Can't find variable: ReadableStream
    103 FAIL canceling via the stream should fail Can't find variable: ReadableStream
     92PASS instances have the correct methods and properties
     93PASS locked should be true
     94PASS read() should never settle
     95PASS two read()s should both never settle
     96PASS read() should return distinct promises each time
     97PASS getReader() again on the stream should fail
     98PASS releasing the lock with pending read requests should throw but the read requests should stay pending
     99PASS releasing the lock should cause further read() calls to reject with a TypeError
     100PASS releasing the lock should cause closed calls to reject with a TypeError
     101PASS releasing the lock should cause locked to become false
     102PASS canceling via the reader should cause the reader to act closed
     103PASS canceling via the stream should fail
    104104PASS Running templatedRSClosed with ReadableStream (closed via call in start)
    105 FAIL cancel() should return a distinct fulfilled promise each time Can't find variable: ReadableStream
    106 FAIL locked should be false Can't find variable: ReadableStream
    107 FAIL getReader() should be OK Can't find variable: ReadableStream
    108 FAIL should be able to acquire multiple readers if they are released in succession Can't find variable: ReadableStream
    109 FAIL should not be able to acquire a second reader if we don't release the first one Can't find variable: ReadableStream
     105PASS cancel() should return a distinct fulfilled promise each time
     106PASS locked should be false
     107PASS getReader() should be OK
     108PASS should be able to acquire multiple readers if they are released in succession
     109PASS should not be able to acquire a second reader if we don't release the first one
    110110PASS Running templatedRSClosedReader with ReadableStream reader (closed before getting reader)
    111 FAIL read() should fulfill with { value: undefined, done: true } Can't find variable: ReadableStream
    112 FAIL read() multiple times should fulfill with { value: undefined, done: true } Can't find variable: ReadableStream
    113 FAIL read() should work when used within another read() fulfill callback Can't find variable: ReadableStream
    114 FAIL closed should fulfill with undefined Can't find variable: ReadableStream
    115 FAIL releasing the lock should cause closed to reject and change identity Can't find variable: ReadableStream
    116 FAIL cancel() should return a distinct fulfilled promise each time Can't find variable: ReadableStream
     111PASS read() should fulfill with { value: undefined, done: true }
     112PASS read() multiple times should fulfill with { value: undefined, done: true }
     113PASS read() should work when used within another read() fulfill callback
     114PASS closed should fulfill with undefined
     115PASS releasing the lock should cause closed to reject and change identity
     116PASS cancel() should return a distinct fulfilled promise each time
    117117PASS Running templatedRSClosedReader with ReadableStream reader (closed after getting reader)
    118 FAIL read() should fulfill with { value: undefined, done: true } Can't find variable: ReadableStream
    119 FAIL read() multiple times should fulfill with { value: undefined, done: true } Can't find variable: ReadableStream
    120 FAIL read() should work when used within another read() fulfill callback Can't find variable: ReadableStream
    121 FAIL closed should fulfill with undefined Can't find variable: ReadableStream
    122 FAIL releasing the lock should cause closed to reject and change identity Can't find variable: ReadableStream
    123 FAIL cancel() should return a distinct fulfilled promise each time Can't find variable: ReadableStream
     118PASS read() should fulfill with { value: undefined, done: true }
     119PASS read() multiple times should fulfill with { value: undefined, done: true }
     120PASS read() should work when used within another read() fulfill callback
     121PASS closed should fulfill with undefined
     122PASS releasing the lock should cause closed to reject and change identity
     123PASS cancel() should return a distinct fulfilled promise each time
    124124PASS Running templatedRSClosed with ReadableStream (closed via cancel)
    125 FAIL cancel() should return a distinct fulfilled promise each time Can't find variable: ReadableStream
    126 FAIL locked should be false Can't find variable: ReadableStream
    127 FAIL getReader() should be OK Can't find variable: ReadableStream
    128 FAIL should be able to acquire multiple readers if they are released in succession Can't find variable: ReadableStream
    129 FAIL should not be able to acquire a second reader if we don't release the first one Can't find variable: ReadableStream
     125PASS cancel() should return a distinct fulfilled promise each time
     126PASS locked should be false
     127PASS getReader() should be OK
     128PASS should be able to acquire multiple readers if they are released in succession
     129PASS should not be able to acquire a second reader if we don't release the first one
    130130PASS Running templatedRSClosedReader with ReadableStream reader (closed via cancel after getting reader)
    131 FAIL read() should fulfill with { value: undefined, done: true } Can't find variable: ReadableStream
    132 FAIL read() multiple times should fulfill with { value: undefined, done: true } Can't find variable: ReadableStream
    133 FAIL read() should work when used within another read() fulfill callback Can't find variable: ReadableStream
    134 FAIL closed should fulfill with undefined Can't find variable: ReadableStream
    135 FAIL releasing the lock should cause closed to reject and change identity Can't find variable: ReadableStream
    136 FAIL cancel() should return a distinct fulfilled promise each time Can't find variable: ReadableStream
     131PASS read() should fulfill with { value: undefined, done: true }
     132PASS read() multiple times should fulfill with { value: undefined, done: true }
     133PASS read() should work when used within another read() fulfill callback
     134PASS closed should fulfill with undefined
     135PASS releasing the lock should cause closed to reject and change identity
     136PASS cancel() should return a distinct fulfilled promise each time
    137137PASS Running templatedRSErrored with ReadableStream (errored via call in start)
    138 FAIL getReader() should return a reader that acts errored Can't find variable: ReadableStream
    139 FAIL read() twice should give the error each time Can't find variable: ReadableStream
    140 FAIL locked should be false Can't find variable: ReadableStream
     138PASS getReader() should return a reader that acts errored
     139PASS read() twice should give the error each time
     140PASS locked should be false
    141141PASS Running templatedRSErroredSyncOnly with ReadableStream (errored via call in start)
    142 FAIL should be able to obtain a second reader, with the correct closed promise Can't find variable: ReadableStream
    143 FAIL should not be able to obtain additional readers if we don't release the first lock Can't find variable: ReadableStream
    144 FAIL cancel() should return a distinct rejected promise each time Can't find variable: ReadableStream
    145 FAIL reader cancel() should return a distinct rejected promise each time Can't find variable: ReadableStream
     142PASS should be able to obtain a second reader, with the correct closed promise
     143PASS should not be able to obtain additional readers if we don't release the first lock
     144PASS cancel() should return a distinct rejected promise each time
     145PASS reader cancel() should return a distinct rejected promise each time
    146146PASS Running templatedRSErrored with ReadableStream (errored via returning a rejected promise in start)
    147 FAIL getReader() should return a reader that acts errored Can't find variable: ReadableStream
    148 FAIL read() twice should give the error each time Can't find variable: ReadableStream
    149 FAIL locked should be false Can't find variable: ReadableStream
     147PASS getReader() should return a reader that acts errored
     148PASS read() twice should give the error each time
     149PASS locked should be false
    150150PASS Running templatedRSErroredReader with ReadableStream (errored via returning a rejected promise in start) reader
    151 FAIL closed should reject with the error Can't find variable: ReadableStream
    152 FAIL releasing the lock should cause closed to reject and change identity Can't find variable: ReadableStream
    153 FAIL read() should reject with the error Can't find variable: ReadableStream
     151PASS closed should reject with the error
     152PASS releasing the lock should cause closed to reject and change identity
     153PASS read() should reject with the error
    154154PASS Running templatedRSErroredReader with ReadableStream reader (errored before getting reader)
    155 FAIL closed should reject with the error Can't find variable: ReadableStream
    156 FAIL releasing the lock should cause closed to reject and change identity Can't find variable: ReadableStream
    157 FAIL read() should reject with the error Can't find variable: ReadableStream
     155PASS closed should reject with the error
     156PASS releasing the lock should cause closed to reject and change identity
     157PASS read() should reject with the error
    158158PASS Running templatedRSErroredReader with ReadableStream reader (errored after getting reader)
    159 FAIL closed should reject with the error Can't find variable: ReadableStream
    160 FAIL releasing the lock should cause closed to reject and change identity Can't find variable: ReadableStream
    161 FAIL read() should reject with the error Can't find variable: ReadableStream
     159PASS closed should reject with the error
     160PASS releasing the lock should cause closed to reject and change identity
     161PASS read() should reject with the error
    162162PASS Running templatedRSTwoChunksOpenReader with ReadableStream (two chunks enqueued, still open) reader
    163 FAIL calling read() twice without waiting will eventually give both chunks (sequential) Can't find variable: ReadableStream
    164 FAIL calling read() twice without waiting will eventually give both chunks (nested) Can't find variable: ReadableStream
    165 FAIL read() should return distinct promises each time Can't find variable: ReadableStream
    166 FAIL cancel() after a read() should still give that single read result Can't find variable: ReadableStream
     163PASS calling read() twice without waiting will eventually give both chunks (sequential)
     164PASS calling read() twice without waiting will eventually give both chunks (nested)
     165PASS read() should return distinct promises each time
     166PASS cancel() after a read() should still give that single read result
    167167PASS Running templatedRSTwoChunksClosedReader with ReadableStream (two chunks enqueued, then closed) reader
    168 FAIL third read(), without waiting, should give { value: undefined, done: true } (sequential) Can't find variable: ReadableStream
    169 FAIL third read(), without waiting, should give { value: undefined, done: true } (nested) Can't find variable: ReadableStream
    170 FAIL draining the stream via read() should cause the reader closed promise to fulfill, but locked stays true Can't find variable: ReadableStream
    171 FAIL releasing the lock after the stream is closed should cause locked to become false Can't find variable: ReadableStream
    172 FAIL releasing the lock should cause further read() calls to reject with a TypeError Can't find variable: ReadableStream
    173 FAIL reader's closed property always returns the same promise Can't find variable: ReadableStream
     168PASS third read(), without waiting, should give { value: undefined, done: true } (sequential)
     169PASS third read(), without waiting, should give { value: undefined, done: true } (nested)
     170PASS draining the stream via read() should cause the reader closed promise to fulfill, but locked stays true
     171PASS releasing the lock after the stream is closed should cause locked to become false
     172PASS releasing the lock should cause further read() calls to reject with a TypeError
     173PASS reader's closed property always returns the same promise
    174174
  • trunk/LayoutTests/js/dom/global-constructors-attributes-dedicated-worker-expected.txt

    r194319 r195101  
    1010PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').enumerable is false
    1111PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').configurable is true
     12PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ByteLengthQueuingStrategy').value is ByteLengthQueuingStrategy
     13PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ByteLengthQueuingStrategy').hasOwnProperty('get') is false
     14PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ByteLengthQueuingStrategy').hasOwnProperty('set') is false
     15PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ByteLengthQueuingStrategy').enumerable is false
     16PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ByteLengthQueuingStrategy').configurable is true
     17PASS [Worker] Object.getOwnPropertyDescriptor(global, 'CountQueuingStrategy').value is CountQueuingStrategy
     18PASS [Worker] Object.getOwnPropertyDescriptor(global, 'CountQueuingStrategy').hasOwnProperty('get') is false
     19PASS [Worker] Object.getOwnPropertyDescriptor(global, 'CountQueuingStrategy').hasOwnProperty('set') is false
     20PASS [Worker] Object.getOwnPropertyDescriptor(global, 'CountQueuingStrategy').enumerable is false
     21PASS [Worker] Object.getOwnPropertyDescriptor(global, 'CountQueuingStrategy').configurable is true
    1222PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DedicatedWorkerGlobalScope').value is DedicatedWorkerGlobalScope
    1323PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DedicatedWorkerGlobalScope').hasOwnProperty('get') is false
     
    4555PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').enumerable is false
    4656PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').configurable is true
     57PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ReadableStream').value is ReadableStream
     58PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ReadableStream').hasOwnProperty('get') is false
     59PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ReadableStream').hasOwnProperty('set') is false
     60PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ReadableStream').enumerable is false
     61PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ReadableStream').configurable is true
    4762PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').value is URL
    4863PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').hasOwnProperty('get') is false
  • trunk/LayoutTests/platform/efl/js/dom/global-constructors-attributes-dedicated-worker-expected.txt

    r194319 r195101  
    1010PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').enumerable is false
    1111PASS [Worker] Object.getOwnPropertyDescriptor(global, 'Blob').configurable is true
     12PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ByteLengthQueuingStrategy').value is ByteLengthQueuingStrategy
     13PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ByteLengthQueuingStrategy').hasOwnProperty('get') is false
     14PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ByteLengthQueuingStrategy').hasOwnProperty('set') is false
     15PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ByteLengthQueuingStrategy').enumerable is false
     16PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ByteLengthQueuingStrategy').configurable is true
     17PASS [Worker] Object.getOwnPropertyDescriptor(global, 'CountQueuingStrategy').value is CountQueuingStrategy
     18PASS [Worker] Object.getOwnPropertyDescriptor(global, 'CountQueuingStrategy').hasOwnProperty('get') is false
     19PASS [Worker] Object.getOwnPropertyDescriptor(global, 'CountQueuingStrategy').hasOwnProperty('set') is false
     20PASS [Worker] Object.getOwnPropertyDescriptor(global, 'CountQueuingStrategy').enumerable is false
     21PASS [Worker] Object.getOwnPropertyDescriptor(global, 'CountQueuingStrategy').configurable is true
    1222PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DedicatedWorkerGlobalScope').value is DedicatedWorkerGlobalScope
    1323PASS [Worker] Object.getOwnPropertyDescriptor(global, 'DedicatedWorkerGlobalScope').hasOwnProperty('get') is false
     
    4555PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').enumerable is false
    4656PASS [Worker] Object.getOwnPropertyDescriptor(global, 'MessageEvent').configurable is true
     57PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ReadableStream').value is ReadableStream
     58PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ReadableStream').hasOwnProperty('get') is false
     59PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ReadableStream').hasOwnProperty('set') is false
     60PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ReadableStream').enumerable is false
     61PASS [Worker] Object.getOwnPropertyDescriptor(global, 'ReadableStream').configurable is true
    4762PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').value is URL
    4863PASS [Worker] Object.getOwnPropertyDescriptor(global, 'URL').hasOwnProperty('get') is false
  • trunk/Source/WebCore/ChangeLog

    r195100 r195101  
     12016-01-15  Youenn Fablet  <youenn.fablet@crf.canon.fr>
     2
     3        [Streams API] Expose ReadableStream and relatives to Worker
     4        https://bugs.webkit.org/show_bug.cgi?id=152066
     5
     6        Reviewed by Darin Adler.
     7
     8        Covered by rebased tests.
     9
     10        * Modules/streams/ByteLengthQueuingStrategy.idl:
     11        * Modules/streams/CountQueuingStrategy.idl:
     12        * Modules/streams/ReadableStream.idl:
     13        * Modules/streams/ReadableStreamController.idl:
     14        * Modules/streams/ReadableStreamReader.idl:
     15
    1162016-01-15  Youenn Fablet  <youenn.fablet@crf.canon.fr>
    217
  • trunk/Source/WebCore/Modules/streams/ByteLengthQueuingStrategy.idl

    r194319 r195101  
    3232    Constructor,
    3333    Conditional=STREAMS_API,
     34    GlobalContext=DOMWindow&WorkerGlobalScope,
    3435] interface ByteLengthQueuingStrategy {
    3536    double size();
  • trunk/Source/WebCore/Modules/streams/CountQueuingStrategy.idl

    r194319 r195101  
    3232    Constructor,
    3333    Conditional=STREAMS_API,
     34    GlobalContext=DOMWindow&WorkerGlobalScope,
    3435] interface CountQueuingStrategy {
    3536    double size();
  • trunk/Source/WebCore/Modules/streams/ReadableStream.idl

    r194319 r195101  
    3131    Conditional=STREAMS_API,
    3232    Constructor,
     33    GlobalContext=DOMWindow&WorkerGlobalScope,
    3334    JSBuiltin
    3435] interface ReadableStream {
  • trunk/Source/WebCore/Modules/streams/ReadableStreamController.idl

    r194319 r195101  
    3131    Conditional=STREAMS_API,
    3232    CustomConstructor,
     33    GlobalContext=DOMWindow&WorkerGlobalScope,
    3334    JSBuiltin,
    3435    NoInterfaceObject
  • trunk/Source/WebCore/Modules/streams/ReadableStreamReader.idl

    r194319 r195101  
    3131    Conditional=STREAMS_API,
    3232    CustomConstructor,
     33    GlobalContext=DOMWindow&WorkerGlobalScope,
    3334    JSBuiltin,
    3435    NoInterfaceObject
Note: See TracChangeset for help on using the changeset viewer.