integrate readablestream with fetch and blob

This commit is contained in:
Gregory Terzian 2020-02-29 11:59:10 +08:00
parent 0281acea95
commit bd5796c90b
74 changed files with 2219 additions and 899 deletions

View file

@ -153,6 +153,10 @@ skip: true
skip: false
[selection]
skip: false
[streams]
skip: true
[readable-streams]
skip: false
[subresource-integrity]
skip: false
[touch-events]

View file

@ -1,27 +0,0 @@
[Blob-stream.any.worker.html]
[Blob.stream() empty Blob]
expected: FAIL
[Blob.stream()]
expected: FAIL
[Blob.stream() non-unicode input]
expected: FAIL
[Blob.stream() garbage collection of blob shouldn't break streamconsumption]
expected: FAIL
[Blob-stream.any.html]
[Blob.stream() empty Blob]
expected: FAIL
[Blob.stream()]
expected: FAIL
[Blob.stream() non-unicode input]
expected: FAIL
[Blob.stream() garbage collection of blob shouldn't break streamconsumption]
expected: FAIL

View file

@ -18,18 +18,9 @@
[File API automated IDL tests]
expected: FAIL
[Blob interface: operation stream()]
expected: FAIL
[Blob interface: operation text()]
expected: FAIL
[Blob interface: new Blob(["TEST"\]) must inherit property "stream()" with the proper type]
expected: FAIL
[Blob interface: operation arrayBuffer()]
expected: FAIL
[Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "stream()" with the proper type]
expected: FAIL

View file

@ -30,18 +30,9 @@
[idlharness]
expected: FAIL
[Blob interface: operation stream()]
expected: FAIL
[Blob interface: operation text()]
expected: FAIL
[Blob interface: new Blob(["TEST"\]) must inherit property "stream()" with the proper type]
expected: FAIL
[Blob interface: operation arrayBuffer()]
expected: FAIL
[Blob interface: new File(["myFileBits"\], "myFileName") must inherit property "stream()" with the proper type]
expected: FAIL

View file

@ -1,11 +0,0 @@
[stream-response.any.html]
type: testharness
[Stream response's body]
expected: FAIL
[stream-response.any.worker.html]
type: testharness
[Stream response's body]
expected: FAIL

View file

@ -5,12 +5,6 @@
[idlharness.any.html]
[Response interface: new Response() must inherit property "body" with the proper type]
expected: FAIL
[Response interface: attribute body]
expected: FAIL
[Response interface: operation blob()]
expected: FAIL
@ -68,9 +62,6 @@
[Request interface: new Request('about:blank') must inherit property "signal" with the proper type]
expected: FAIL
[Request interface: new Request('about:blank') must inherit property "body" with the proper type]
expected: FAIL
[Request interface: operation arrayBuffer()]
expected: FAIL
@ -80,9 +71,6 @@
[Response interface: attribute trailer]
expected: FAIL
[Request interface: attribute body]
expected: FAIL
[Window interface: calling fetch(RequestInfo, optional RequestInit) on window with too few arguments must throw TypeError]
expected: FAIL
@ -91,12 +79,6 @@
[idlharness.any.worker.html]
[Response interface: new Response() must inherit property "body" with the proper type]
expected: FAIL
[Response interface: attribute body]
expected: FAIL
[Response interface: operation blob()]
expected: FAIL
@ -154,9 +136,6 @@
[Request interface: new Request('about:blank') must inherit property "signal" with the proper type]
expected: FAIL
[Request interface: new Request('about:blank') must inherit property "body" with the proper type]
expected: FAIL
[Request interface: operation arrayBuffer()]
expected: FAIL
@ -166,9 +145,6 @@
[Response interface: attribute trailer]
expected: FAIL
[Request interface: attribute body]
expected: FAIL
[WorkerGlobalScope interface: calling fetch(RequestInfo, optional RequestInit) on self with too few arguments must throw TypeError]
expected: FAIL

View file

@ -1,89 +0,0 @@
[request-bad-port.html]
expected: TIMEOUT
[Request on bad port 427 should throw TypeError.]
expected: TIMEOUT
[Request on bad port 465 should throw TypeError.]
expected: NOTRUN
[Request on bad port 512 should throw TypeError.]
expected: NOTRUN
[Request on bad port 513 should throw TypeError.]
expected: NOTRUN
[Request on bad port 514 should throw TypeError.]
expected: NOTRUN
[Request on bad port 515 should throw TypeError.]
expected: NOTRUN
[Request on bad port 526 should throw TypeError.]
expected: NOTRUN
[Request on bad port 530 should throw TypeError.]
expected: NOTRUN
[Request on bad port 531 should throw TypeError.]
expected: NOTRUN
[Request on bad port 532 should throw TypeError.]
expected: NOTRUN
[Request on bad port 540 should throw TypeError.]
expected: NOTRUN
[Request on bad port 548 should throw TypeError.]
expected: NOTRUN
[Request on bad port 556 should throw TypeError.]
expected: NOTRUN
[Request on bad port 563 should throw TypeError.]
expected: NOTRUN
[Request on bad port 587 should throw TypeError.]
expected: NOTRUN
[Request on bad port 601 should throw TypeError.]
expected: NOTRUN
[Request on bad port 636 should throw TypeError.]
expected: NOTRUN
[Request on bad port 993 should throw TypeError.]
expected: NOTRUN
[Request on bad port 995 should throw TypeError.]
expected: NOTRUN
[Request on bad port 2049 should throw TypeError.]
expected: NOTRUN
[Request on bad port 3659 should throw TypeError.]
expected: NOTRUN
[Request on bad port 4045 should throw TypeError.]
expected: NOTRUN
[Request on bad port 6000 should throw TypeError.]
expected: NOTRUN
[Request on bad port 6665 should throw TypeError.]
expected: NOTRUN
[Request on bad port 6666 should throw TypeError.]
expected: NOTRUN
[Request on bad port 6667 should throw TypeError.]
expected: NOTRUN
[Request on bad port 6668 should throw TypeError.]
expected: NOTRUN
[Request on bad port 6669 should throw TypeError.]
expected: NOTRUN
[Request on bad port 6697 should throw TypeError.]
expected: NOTRUN

View file

@ -1,32 +1,11 @@
[request-consume-empty.html]
type: testharness
[Consume request's body as arrayBuffer]
expected: FAIL
[Consume request's body as formData]
expected: FAIL
[Consume request's body as text]
expected: FAIL
[Consume request's body as blob]
expected: FAIL
[Consume request's body as json]
expected: FAIL
[Consume empty FormData request body as text]
expected: FAIL
[Consume request's body as json (error case)]
expected: FAIL
[Consume request's body as formData with correct multipart type (error case)]
expected: FAIL
[Consume request's body as formData with correct urlencoded type]
expected: FAIL
[Consume request's body as formData without correct type (error case)]
expected: FAIL

View file

@ -1,23 +1,11 @@
[request-disturbed.html]
type: testharness
[Check cloning a disturbed request]
expected: FAIL
[Check creating a new request from a disturbed request]
expected: FAIL
[Input request used for creating new request became disturbed]
expected: FAIL
[Request construction failure should not set "bodyUsed"]
expected: FAIL
[Request without body cannot be disturbed]
expected: FAIL
[Request's body: initial state]
expected: FAIL
[Input request used for creating new request became disturbed even if body is not used]
expected: FAIL

View file

@ -2,18 +2,9 @@
[Constructing a Request with a Request on which read() and releaseLock() are called]
expected: FAIL
[Constructing a Request with a stream on which read() and releaseLock() are called]
expected: FAIL
[Constructing a Request with a stream on which getReader() is called]
expected: FAIL
[Constructing a Request with a Request on which body.getReader() is called]
expected: FAIL
[Constructing a Request with a stream on which read() is called]
expected: FAIL
[Constructing a Request with a Request on which body.getReader().read() is called]
expected: FAIL
@ -28,18 +19,9 @@
[Constructing a Request with a Request on which read() and releaseLock() are called]
expected: FAIL
[Constructing a Request with a stream on which read() and releaseLock() are called]
expected: FAIL
[Constructing a Request with a stream on which getReader() is called]
expected: FAIL
[Constructing a Request with a Request on which body.getReader() is called]
expected: FAIL
[Constructing a Request with a stream on which read() is called]
expected: FAIL
[Constructing a Request with a Request on which body.getReader().read() is called]
expected: FAIL

View file

@ -1,23 +1,5 @@
[response-cancel-stream.html]
type: testharness
[Cancelling a starting blob Response stream]
expected: FAIL
[Cancelling a loading blob Response stream]
expected: FAIL
[Cancelling a closed blob Response stream]
expected: FAIL
[Cancelling a starting Response stream]
expected: FAIL
[Cancelling a loading Response stream]
expected: FAIL
[Cancelling a closed Response stream]
expected: FAIL
[Response consume blob and http bodies]
expected: FAIL

View file

@ -1,8 +1,5 @@
[response-clone.html]
type: testharness
[Check orginal response's body after cloning]
expected: FAIL
[Check cloned response's body]
expected: FAIL
@ -44,3 +41,4 @@
[Check response clone use structureClone for teed ReadableStreams (DataViewchunk)]
expected: FAIL

View file

@ -1,29 +1,8 @@
[response-consume-stream.html]
type: testharness
[Read empty text response's body as readableStream]
expected: FAIL
[Read empty blob response's body as readableStream]
expected: FAIL
[Read blob response's body as readableStream]
expected: FAIL
[Read text response's body as readableStream]
expected: FAIL
[Read array buffer response's body as readableStream]
expected: FAIL
[Read form data response's body as readableStream]
expected: FAIL
[Getting an error Response stream]
expected: FAIL
[Getting a redirect Response stream]
expected: FAIL
[Read URLSearchParams response's body as readableStream]
expected: FAIL

View file

@ -1,6 +1,5 @@
[response-consume.html]
type: testharness
expected: ERROR
[Consume response's body as arrayBuffer]
expected: FAIL
@ -34,30 +33,9 @@
[Consume response's body: from FormData to formData]
expected: FAIL
[Consume response's body: from stream to blob]
expected: FAIL
[Consume response's body: from stream to text]
expected: FAIL
[Consume response's body: from stream to arrayBuffer]
expected: FAIL
[Consume response's body: from stream to json]
expected: FAIL
[Consume response's body: from stream with correct multipart type to formData]
expected: FAIL
[Consume response's body: from stream without correct multipart type to formData (error case)]
expected: FAIL
[Consume response's body: from stream with correct urlencoded type to formData]
expected: FAIL
[Consume response's body: from stream without correct urlencoded type to formData (error case)]
expected: FAIL
[Consume response's body: from multipart form data blob to formData]
expected: FAIL

View file

@ -1,8 +1,2 @@
[response-error-from-stream.html]
expected: ERROR
[ReadableStreamDefaultReader Promise receives ReadableStream start() Error]
expected: FAIL
[ReadableStreamDefaultReader Promise receives ReadableStream pull() Error]
expected: FAIL

View file

@ -5,29 +5,11 @@
[response-from-stream.any.html]
[Constructing a Response with a stream on which getReader() is called]
expected: FAIL
[Constructing a Response with a stream on which read() and releaseLock() are called]
expected: FAIL
[Constructing a Response with a stream on which read() is called]
expected: FAIL
[response-from-stream.any.serviceworker.html]
expected: TIMEOUT
[response-from-stream.any.worker.html]
[Constructing a Response with a stream on which getReader() is called]
expected: FAIL
[Constructing a Response with a stream on which read() and releaseLock() are called]
expected: FAIL
[Constructing a Response with a stream on which read() is called]
expected: FAIL
[response-from-stream.any.serviceworker.html]
expected: ERROR

View file

@ -1,8 +1,5 @@
[response-init-002.html]
type: testharness
[Read Response's body as readableStream]
expected: FAIL
[Testing null Response body]
expected: FAIL

View file

@ -1,14 +0,0 @@
[response-stream-disturbed-1.html]
type: testharness
[Getting blob after getting the Response body - not disturbed, not locked]
expected: FAIL
[Getting text after getting the Response body - not disturbed, not locked]
expected: FAIL
[Getting json after getting the Response body - not disturbed, not locked]
expected: FAIL
[Getting arrayBuffer after getting the Response body - not disturbed, not locked]
expected: FAIL

View file

@ -1,14 +0,0 @@
[response-stream-disturbed-2.html]
type: testharness
[Getting blob after getting a locked Response body]
expected: FAIL
[Getting text after getting a locked Response body]
expected: FAIL
[Getting json after getting a locked Response body]
expected: FAIL
[Getting arrayBuffer after getting a locked Response body]
expected: FAIL

View file

@ -1,14 +0,0 @@
[response-stream-disturbed-3.html]
type: testharness
[Getting blob after reading the Response body]
expected: FAIL
[Getting text after reading the Response body]
expected: FAIL
[Getting json after reading the Response body]
expected: FAIL
[Getting arrayBuffer after reading the Response body]
expected: FAIL

View file

@ -1,14 +0,0 @@
[response-stream-disturbed-4.html]
type: testharness
[Getting blob after cancelling the Response body]
expected: FAIL
[Getting text after cancelling the Response body]
expected: FAIL
[Getting json after cancelling the Response body]
expected: FAIL
[Getting arrayBuffer after cancelling the Response body]
expected: FAIL

View file

@ -1,17 +0,0 @@
[response-stream-disturbed-6.html]
type: testharness
[A non-closed stream on which read() has been called]
expected: FAIL
[A non-closed stream on which cancel() has been called]
expected: FAIL
[A closed stream on which read() has been called]
expected: FAIL
[An errored stream on which read() has been called]
expected: FAIL
[An errored stream on which cancel() has been called]
expected: FAIL

View file

@ -1,25 +1,22 @@
[response-stream-with-broken-then.any.html]
[Untitled]
expected: FAIL
[Inject {done: false, value: bye} via Object.prototype.then.]
expected: FAIL
[Inject {done: false, value: undefined} via Object.prototype.then.]
expected: FAIL
[Inject undefined via Object.prototype.then.]
expected: FAIL
[Inject 8.2 via Object.prototype.then.]
expected: FAIL
[response-stream-with-broken-then]
expected: FAIL
[Attempt to inject {done: false, value: bye} via Object.prototype.then.]
expected: FAIL
[Attempt to inject value: undefined via Object.prototype.then.]
expected: FAIL
[Attempt to inject undefined via Object.prototype.then.]
expected: FAIL
[Attempt to inject 8.2 via Object.prototype.then.]
expected: FAIL
[intercepting arraybuffer to body readable stream conversion via Object.prototype.then should not be possible]
expected: FAIL
@ -27,26 +24,22 @@
[response-stream-with-broken-then.any.worker.html]
[Untitled]
expected: FAIL
[Inject {done: false, value: bye} via Object.prototype.then.]
expected: FAIL
[Inject {done: false, value: undefined} via Object.prototype.then.]
expected: FAIL
[Inject undefined via Object.prototype.then.]
expected: FAIL
[Inject 8.2 via Object.prototype.then.]
expected: FAIL
[Attempt to inject {done: false, value: bye} via Object.prototype.then.]
expected: FAIL
[Attempt to inject value: undefined via Object.prototype.then.]
expected: FAIL
[Attempt to inject undefined via Object.prototype.then.]
expected: FAIL
[Attempt to inject 8.2 via Object.prototype.then.]
expected: FAIL
[intercepting arraybuffer to body readable stream conversion via Object.prototype.then should not be possible]
expected: FAIL
[response-stream-with-broken-then]
expected: FAIL

View file

@ -311,28 +311,3 @@
[fetch(): separate response Content-Type: text/plain ]
expected: NOTRUN
[<iframe>: separate response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;x=" text/plain]
expected: FAIL
[<iframe>: combined response Content-Type: */* text/html]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
expected: FAIL
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL
[<iframe>: separate response Content-Type: text/plain */*]
expected: FAIL
[<iframe>: combined response Content-Type: text/html */*;charset=gbk]
expected: FAIL
[<iframe>: separate response Content-Type: text/html;" \\" text/plain]
expected: FAIL

View file

@ -53,9 +53,15 @@
[combined text/javascript ]
expected: FAIL
[separate text/javascript x/x]
[separate text/javascript;charset=windows-1252 error text/javascript]
expected: FAIL
[separate text/javascript ]
expected: FAIL
[separate text/javascript error]
expected: FAIL
[separate text/javascript x/x]
expected: FAIL

View file

@ -10,4 +10,3 @@
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
expected: FAIL

View file

@ -1,128 +1,37 @@
[assorted.window.html]
expected: TIMEOUT
[Origin header and POST same-origin fetch cors mode with Referrer-Policy no-referrer-when-downgrade]
expected: NOTRUN
[Origin header and POST cross-origin fetch cors mode with Referrer-Policy no-referrer-when-downgrade]
expected: NOTRUN
[Origin header and POST same-origin fetch cors mode with Referrer-Policy no-referrer]
expected: NOTRUN
[Origin header and POST same-origin navigation with Referrer-Policy origin-when-cross-origin]
expected: NOTRUN
[Origin header and POST same-origin fetch no-cors mode with Referrer-Policy unsafe-url]
expected: NOTRUN
[Origin header and 308 redirect]
expected: FAIL
[Origin header and POST same-origin fetch no-cors mode with Referrer-Policy same-origin]
expected: NOTRUN
[Origin header and POST cross-origin fetch no-cors mode with Referrer-Policy no-referrer]
expected: NOTRUN
[Origin header and POST same-origin navigation with Referrer-Policy no-referrer-when-downgrade]
expected: NOTRUN
[Origin header and POST cross-origin fetch no-cors mode with Referrer-Policy unsafe-url]
expected: NOTRUN
expected: FAIL
[Origin header and POST same-origin fetch no-cors mode with Referrer-Policy no-referrer]
expected: NOTRUN
expected: FAIL
[Origin header and POST cross-origin navigation with Referrer-Policy origin-when-cross-origin]
expected: NOTRUN
[Origin header and POST cross-origin fetch no-cors mode with Referrer-Policy origin-when-cross-origin]
expected: NOTRUN
[Origin header and POST cross-origin fetch cors mode with Referrer-Policy origin-when-cross-origin]
expected: NOTRUN
[Origin header and POST cross-origin fetch no-cors mode with Referrer-Policy no-referrer-when-downgrade]
expected: NOTRUN
expected: FAIL
[Origin header and POST cross-origin navigation with Referrer-Policy unsafe-url]
expected: NOTRUN
expected: FAIL
[Origin header and POST navigation]
expected: TIMEOUT
expected: FAIL
[Origin header and POST cross-origin navigation with Referrer-Policy no-referrer]
expected: NOTRUN
expected: FAIL
[Origin header and POST cross-origin navigation with Referrer-Policy same-origin]
expected: NOTRUN
[Origin header and POST cross-origin fetch cors mode with Referrer-Policy same-origin]
expected: NOTRUN
[Origin header and POST same-origin fetch no-cors mode with Referrer-Policy origin-when-cross-origin]
expected: NOTRUN
[Origin header and POST cross-origin fetch cors mode with Referrer-Policy unsafe-url]
expected: NOTRUN
[Origin header and POST same-origin navigation with Referrer-Policy unsafe-url]
expected: NOTRUN
[Origin header and POST same-origin fetch no-cors mode with Referrer-Policy no-referrer-when-downgrade]
expected: NOTRUN
expected: FAIL
[Origin header and POST cross-origin fetch no-cors mode with Referrer-Policy same-origin]
expected: NOTRUN
expected: FAIL
[Origin header and POST same-origin navigation with Referrer-Policy no-referrer]
expected: NOTRUN
[Origin header and POST same-origin fetch cors mode with Referrer-Policy unsafe-url]
expected: NOTRUN
[Origin header and POST same-origin navigation with Referrer-Policy same-origin]
expected: NOTRUN
[Origin header and POST same-origin fetch cors mode with Referrer-Policy same-origin]
expected: NOTRUN
[Origin header and POST same-origin fetch cors mode with Referrer-Policy origin-when-cross-origin]
expected: NOTRUN
[Origin header and POST cross-origin fetch cors mode with Referrer-Policy no-referrer]
expected: NOTRUN
expected: FAIL
[Origin header and POST cross-origin navigation with Referrer-Policy no-referrer-when-downgrade]
expected: NOTRUN
expected: FAIL
[Origin header and GET same-origin fetch cors mode with Referrer-Policy no-referrer]
expected: NOTRUN
[Origin header and GET cross-origin fetch cors mode with Referrer-Policy no-referrer-when-downgrade]
expected: NOTRUN
[Origin header and GET same-origin fetch cors mode with Referrer-Policy origin-when-cross-origin]
expected: NOTRUN
[Origin header and GET same-origin fetch cors mode with Referrer-Policy no-referrer-when-downgrade]
expected: NOTRUN
[Origin header and GET same-origin fetch cors mode with Referrer-Policy same-origin]
expected: NOTRUN
[Origin header and GET same-origin fetch cors mode with Referrer-Policy unsafe-url]
expected: NOTRUN
[Origin header and GET cross-origin fetch cors mode with Referrer-Policy unsafe-url]
expected: NOTRUN
[Origin header and GET cross-origin fetch cors mode with Referrer-Policy same-origin]
expected: NOTRUN
[Origin header and GET cross-origin fetch cors mode with Referrer-Policy no-referrer]
expected: NOTRUN
[Origin header and GET cross-origin fetch cors mode with Referrer-Policy origin-when-cross-origin]
expected: NOTRUN
[Origin header and POST same-origin fetch cors mode with Referrer-Policy no-referrer]
expected: FAIL

View file

@ -0,0 +1,165 @@
[async-iterator.any.serviceworker.html]
expected: ERROR
[async-iterator.any.sharedworker.html]
expected: ERROR
[async-iterator.any.html]
[Async-iterating an empty but not closed/errored stream never executes the loop body and stalls the async function]
expected: FAIL
[Calling return() twice rejects]
expected: FAIL
[Cancellation behavior when manually calling return(); preventCancel = true]
expected: FAIL
[calling next() after return() should reject]
expected: FAIL
[Cancellation behavior when returning inside loop body; preventCancel = true]
expected: FAIL
[getIterator() throws if there's already a lock]
expected: FAIL
[Async-iterating a push source]
expected: FAIL
[Async-iterating a closed stream never executes the loop body, but works fine]
expected: FAIL
[Acquiring a reader after exhaustively async-iterating a stream]
expected: FAIL
[return() should unlock the stream synchronously when preventCancel = true]
expected: FAIL
[Async iterator instances should have the correct list of properties]
expected: FAIL
[return() should unlock the stream synchronously when preventCancel = false]
expected: FAIL
[Cancellation behavior when returning inside loop body; preventCancel = false]
expected: FAIL
[Cancellation behavior when manually calling return(); preventCancel = false]
expected: FAIL
[Cancellation behavior when throwing inside loop body; preventCancel = true]
expected: FAIL
[Cancellation behavior when breaking inside loop body; preventCancel = true]
expected: FAIL
[Cancellation behavior when throwing inside loop body; preventCancel = false]
expected: FAIL
[Async-iterating a pull source]
expected: FAIL
[Acquiring a reader and reading the remaining chunks after partially async-iterating a stream with preventCancel = true]
expected: FAIL
[Acquiring a reader after partially async-iterating a stream]
expected: FAIL
[Async-iterating a partially consumed stream]
expected: FAIL
[Cancellation behavior when breaking inside loop body; preventCancel = false]
expected: FAIL
[calling return() while there are pending reads rejects]
expected: FAIL
[Async-iterating a pull source manually]
expected: FAIL
[Async-iterating an errored stream throws]
expected: FAIL
[next()'s fulfillment value has the right shape]
expected: FAIL
[async-iterator.any.worker.html]
[Async-iterating an empty but not closed/errored stream never executes the loop body and stalls the async function]
expected: FAIL
[Calling return() twice rejects]
expected: FAIL
[Cancellation behavior when manually calling return(); preventCancel = true]
expected: FAIL
[calling next() after return() should reject]
expected: FAIL
[Cancellation behavior when returning inside loop body; preventCancel = true]
expected: FAIL
[getIterator() throws if there's already a lock]
expected: FAIL
[Async-iterating a push source]
expected: FAIL
[Async-iterating a closed stream never executes the loop body, but works fine]
expected: FAIL
[Acquiring a reader after exhaustively async-iterating a stream]
expected: FAIL
[return() should unlock the stream synchronously when preventCancel = true]
expected: FAIL
[Async iterator instances should have the correct list of properties]
expected: FAIL
[return() should unlock the stream synchronously when preventCancel = false]
expected: FAIL
[Cancellation behavior when returning inside loop body; preventCancel = false]
expected: FAIL
[Cancellation behavior when manually calling return(); preventCancel = false]
expected: FAIL
[Cancellation behavior when throwing inside loop body; preventCancel = true]
expected: FAIL
[Cancellation behavior when breaking inside loop body; preventCancel = true]
expected: FAIL
[Cancellation behavior when throwing inside loop body; preventCancel = false]
expected: FAIL
[Async-iterating a pull source]
expected: FAIL
[Acquiring a reader and reading the remaining chunks after partially async-iterating a stream with preventCancel = true]
expected: FAIL
[Acquiring a reader after partially async-iterating a stream]
expected: FAIL
[Async-iterating a partially consumed stream]
expected: FAIL
[Cancellation behavior when breaking inside loop body; preventCancel = false]
expected: FAIL
[calling return() while there are pending reads rejects]
expected: FAIL
[Async-iterating a pull source manually]
expected: FAIL
[Async-iterating an errored stream throws]
expected: FAIL
[next()'s fulfillment value has the right shape]
expected: FAIL

View file

@ -0,0 +1,9 @@
[bad-strategies.any.worker.html]
[bad-strategies.any.serviceworker.html]
expected: ERROR
[bad-strategies.any.html]
[bad-strategies.any.sharedworker.html]
expected: ERROR

View file

@ -0,0 +1,9 @@
[bad-underlying-sources.any.worker.html]
[bad-underlying-sources.any.sharedworker.html]
expected: ERROR
[bad-underlying-sources.any.html]
[bad-underlying-sources.any.serviceworker.html]
expected: ERROR

View file

@ -0,0 +1,33 @@
[brand-checks.any.worker.html]
[ReadableStreamAsyncIteratorPrototype.next enforces a brand check]
expected: FAIL
[ReadableStream.prototype.getIterator enforces a brand check]
expected: FAIL
[ReadableStreamAsyncIteratorPrototype.return enforces a brand check]
expected: FAIL
[Can get ReadableStreamAsyncIteratorPrototype object indirectly]
expected: FAIL
[brand-checks.any.serviceworker.html]
expected: ERROR
[brand-checks.any.html]
[ReadableStreamAsyncIteratorPrototype.next enforces a brand check]
expected: FAIL
[ReadableStream.prototype.getIterator enforces a brand check]
expected: FAIL
[ReadableStreamAsyncIteratorPrototype.return enforces a brand check]
expected: FAIL
[Can get ReadableStreamAsyncIteratorPrototype object indirectly]
expected: FAIL
[brand-checks.any.sharedworker.html]
expected: ERROR

View file

@ -0,0 +1,9 @@
[cancel.any.worker.html]
[cancel.any.sharedworker.html]
expected: ERROR
[cancel.any.html]
[cancel.any.serviceworker.html]
expected: ERROR

View file

@ -0,0 +1,9 @@
[constructor.any.sharedworker.html]
expected: ERROR
[constructor.any.serviceworker.html]
expected: ERROR
[constructor.any.html]
[constructor.any.worker.html]

View file

@ -0,0 +1,9 @@
[count-queuing-strategy-integration.any.worker.html]
[count-queuing-strategy-integration.any.sharedworker.html]
expected: ERROR
[count-queuing-strategy-integration.any.serviceworker.html]
expected: ERROR
[count-queuing-strategy-integration.any.html]

View file

@ -0,0 +1,10 @@
[default-reader.any.worker.html]
[default-reader.any.sharedworker.html]
expected: ERROR
[default-reader.any.serviceworker.html]
expected: ERROR
[default-reader.any.html]
expected: ERROR

View file

@ -0,0 +1,9 @@
[floating-point-total-queue-size.any.worker.html]
[floating-point-total-queue-size.any.serviceworker.html]
expected: ERROR
[floating-point-total-queue-size.any.html]
[floating-point-total-queue-size.any.sharedworker.html]
expected: ERROR

View file

@ -0,0 +1,9 @@
[garbage-collection.any.sharedworker.html]
expected: ERROR
[garbage-collection.any.html]
[garbage-collection.any.serviceworker.html]
expected: ERROR
[garbage-collection.any.worker.html]

View file

@ -0,0 +1,15 @@
[general.any.sharedworker.html]
expected: ERROR
[general.any.serviceworker.html]
expected: ERROR
[general.any.html]
[ReadableStream instances should have the correct list of properties]
expected: FAIL
[general.any.worker.html]
[ReadableStream instances should have the correct list of properties]
expected: FAIL

View file

@ -0,0 +1,21 @@
[patched-global.any.serviceworker.html]
expected: ERROR
[patched-global.any.sharedworker.html]
expected: ERROR
[patched-global.any.html]
[ReadableStream getIterator() should use the original values of getReader() and ReadableStreamDefaultReader methods]
expected: FAIL
[pipeTo() should not call Promise.prototype.then()]
expected: FAIL
[patched-global.any.worker.html]
[ReadableStream getIterator() should use the original values of getReader() and ReadableStreamDefaultReader methods]
expected: FAIL
[pipeTo() should not call Promise.prototype.then()]
expected: FAIL

View file

@ -0,0 +1,15 @@
[reentrant-strategies.any.worker.html]
[pipeTo() inside size() should behave as expected]
expected: FAIL
[reentrant-strategies.any.serviceworker.html]
expected: ERROR
[reentrant-strategies.any.html]
[pipeTo() inside size() should behave as expected]
expected: FAIL
[reentrant-strategies.any.sharedworker.html]
expected: ERROR

View file

@ -0,0 +1,35 @@
[tee.any.sharedworker.html]
expected: ERROR
[tee.any.worker.html]
expected: ERROR
[ReadableStreamTee should not pull more chunks than can fit in the branch queue]
expected: FAIL
[ReadableStreamTee stops pulling when original stream errors while branch 1 is reading]
expected: FAIL
[ReadableStreamTee stops pulling when original stream errors while both branches are reading]
expected: FAIL
[ReadableStreamTee stops pulling when original stream errors while branch 2 is reading]
expected: FAIL
[tee.any.serviceworker.html]
expected: ERROR
[tee.any.html]
expected: ERROR
[ReadableStreamTee should not pull more chunks than can fit in the branch queue]
expected: FAIL
[ReadableStreamTee stops pulling when original stream errors while branch 1 is reading]
expected: FAIL
[ReadableStreamTee stops pulling when original stream errors while both branches are reading]
expected: FAIL
[ReadableStreamTee stops pulling when original stream errors while branch 2 is reading]
expected: FAIL

View file

@ -0,0 +1,15 @@
[templated.any.sharedworker.html]
expected: ERROR
[templated.any.serviceworker.html]
expected: ERROR
[templated.any.html]
[ReadableStream (empty): instances have the correct methods and properties]
expected: FAIL
[templated.any.worker.html]
[ReadableStream (empty): instances have the correct methods and properties]
expected: FAIL

View file

@ -9,18 +9,9 @@
[The Path2D interface object should be exposed.]
expected: FAIL
[The ReadableStream interface object should be exposed.]
expected: FAIL
[The WritableStream interface object should be exposed.]
expected: FAIL
[The ByteLengthQueuingStrategy interface object should be exposed.]
expected: FAIL
[The CountQueuingStrategy interface object should be exposed.]
expected: FAIL
[The IDBRequest interface object should be exposed.]
expected: FAIL
@ -53,3 +44,4 @@
[The IDBTransaction interface object should be exposed.]
expected: FAIL

View file

@ -1,24 +1,6 @@
[send-data-readablestream.any.html]
[XMLHttpRequest: send() with a stream on which read() is called]
expected: FAIL
[XMLHttpRequest: send() with a stream on which read() and releaseLock() are called]
expected: FAIL
[XMLHttpRequest: send() with a stream on which getReader() is called]
expected: FAIL
[send-data-readablestream.any.worker.html]
[XMLHttpRequest: send() with a stream on which read() is called]
expected: FAIL
[XMLHttpRequest: send() with a stream on which read() and releaseLock() are called]
expected: FAIL
[XMLHttpRequest: send() with a stream on which getReader() is called]
expected: FAIL
[send-data-readablestream.any.sharedworker.html]
expected: ERROR

View file

@ -0,0 +1,4 @@
[send-timeout-events.htm]
expected:
if os == "linux": TIMEOUT

View file

@ -3,15 +3,6 @@
[URLSearchParams request keeps setRequestHeader() Content-Type, with charset adjusted to UTF-8]
expected: FAIL
[ReadableStream request respects setRequestHeader("")]
expected: FAIL
[ReadableStream request with under type sends no Content-Type without setRequestHeader() call]
expected: FAIL
[ReadableStream request keeps setRequestHeader() Content-Type and charset]
expected: FAIL
[String request keeps setRequestHeader() Content-Type, with charset adjusted to UTF-8]
expected: FAIL

View file

@ -10988,7 +10988,7 @@
[]
],
"interfaces.js": [
"f62df6b9c75332a2918b18ec70acfc5d7a795ac0",
"253dd124cebe9b7d3aa4fc5ff8c9137e7aeb2f66",
[]
],
"nested_asap_script.js": [
@ -13924,7 +13924,7 @@
]
],
"interfaces.worker.js": [
"c1223084790b2980c8184e3cd9ab5ae17bc8b303",
"59d4aa1855fbf281736b28581fbc519a847c8a0d",
[
"mozilla/interfaces.worker.html",
{}

View file

@ -11,6 +11,8 @@ function test_interfaces(interfaceNamesInGlobalScope) {
"BigUint64Array",
"Boolean",
"BroadcastChannel",
"ByteLengthQueuingStrategy",
"CountQueuingStrategy",
"Crypto",
"DataView",
"Date",
@ -36,6 +38,7 @@ function test_interfaces(interfaceNamesInGlobalScope) {
"Promise",
"Proxy",
"RangeError",
"ReadableStream",
"ReferenceError",
"Reflect",
"RegExp",

View file

@ -9,9 +9,11 @@ importScripts("interfaces.js");
test_interfaces([
"Blob",
"BroadcastChannel",
"ByteLengthQueuingStrategy",
"CanvasGradient",
"CanvasPattern",
"CloseEvent",
"CountQueuingStrategy",
"DOMMatrix",
"DOMMatrixReadOnly",
"DOMPoint",
@ -48,6 +50,7 @@ test_interfaces([
"PerformanceResourceTiming",
"ProgressEvent",
"PromiseRejectionEvent",
"ReadableStream",
"Request",
"Response",
"TextDecoder",