Reset to in-memory stream with empty byte sequence for None init body

Because the response body stream is initialized with FetchResponse, it
cannot be processed with in-memory empty sequence. Thus, instead of
using the FetchResponse stream, we'll reset it to Memory body stream
with empty byte sequence if there's no init body.
This commit is contained in:
cybai 2023-04-17 17:07:17 +09:00
parent 7eca93bb7a
commit 7c9c786053
8 changed files with 109 additions and 984 deletions

View file

@ -144,6 +144,11 @@ impl Response {
)?;
}
};
} else {
// Reset FetchResponse to an in-memory stream with empty byte sequence here for
// no-init-body case
let stream = ReadableStream::new_from_bytes(&global, Vec::with_capacity(0));
r.body_stream.set(Some(&*stream));
}
Ok(r)

View file

@ -1,226 +1,10 @@
[stream-safe-creation.any.html]
expected: TIMEOUT
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyResponse']
expected: TIMEOUT
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[stream-safe-creation.any.serviceworker.html]
expected: ERROR
[stream-safe-creation]
expected: FAIL
[stream-safe-creation.any.sharedworker.html]
expected: ERROR
[stream-safe-creation.any.worker.html]
expected: TIMEOUT
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyResponse']
expected: TIMEOUT
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[stream-safe-creation]
expected: FAIL

View file

@ -5,91 +5,52 @@
expected: ERROR
[response-consume-empty.any.worker.html]
expected: TIMEOUT
[Consume response's body as text]
expected: TIMEOUT
expected: FAIL
[Consume response's body as json (error case)]
expected: NOTRUN
expected: FAIL
[Consume response's body as blob]
expected: NOTRUN
[Consume empty URLSearchParams response body as text]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData without correct type (error case)]
expected: NOTRUN
[Consume empty blob response body as text]
expected: NOTRUN
[Consume empty text response body as arrayBuffer]
expected: NOTRUN
[Consume empty text response body as text]
expected: NOTRUN
[Consume empty blob response body as arrayBuffer]
expected: NOTRUN
expected: FAIL
[Consume response's body as arrayBuffer]
expected: NOTRUN
expected: FAIL
[Consume empty FormData response body as text]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData with correct multipart type (error case)]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData with correct urlencoded type]
expected: NOTRUN
[Consume empty ArrayBuffer response body as text]
expected: NOTRUN
expected: FAIL
[response-consume-empty.any.html]
expected: TIMEOUT
[Consume response's body as text]
expected: TIMEOUT
expected: FAIL
[Consume response's body as json (error case)]
expected: NOTRUN
expected: FAIL
[Consume response's body as blob]
expected: NOTRUN
[Consume empty URLSearchParams response body as text]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData without correct type (error case)]
expected: NOTRUN
[Consume empty blob response body as text]
expected: NOTRUN
[Consume empty text response body as arrayBuffer]
expected: NOTRUN
[Consume empty text response body as text]
expected: NOTRUN
[Consume empty blob response body as arrayBuffer]
expected: NOTRUN
expected: FAIL
[Consume response's body as arrayBuffer]
expected: NOTRUN
expected: FAIL
[Consume empty FormData response body as text]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData with correct multipart type (error case)]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData with correct urlencoded type]
expected: NOTRUN
[Consume empty ArrayBuffer response body as text]
expected: NOTRUN
expected: FAIL

View file

@ -1,307 +1,162 @@
[response.window.html]
expected: TIMEOUT
[fetch(): combined response Content-Type: text/plain ]
expected: NOTRUN
[Response: combined response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: NOTRUN
[Request: combined response Content-Type: */* text/html]
expected: NOTRUN
expected: FAIL
[fetch(): separate response Content-Type: text/html;" \\" text/plain]
expected: NOTRUN
[Response: combined response Content-Type: text/html */*]
expected: NOTRUN
[fetch(): separate response Content-Type: */* text/html]
expected: NOTRUN
expected: FAIL
[fetch(): separate response Content-Type: text/html;" text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/plain */*;charset=gbk]
expected: FAIL
[fetch(): separate response Content-Type: text/html;x=" text/plain]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: NOTRUN
expected: FAIL
[Request: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: NOTRUN
[Response: combined response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: NOTRUN
[fetch(): separate response Content-Type: text/plain;charset=gbk text/html]
expected: NOTRUN
[Request: combined response Content-Type: text/html */*]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/plain]
expected: FAIL
[Request: combined response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: NOTRUN
[Response: combined response Content-Type: text/plain;charset=gbk text/html]
expected: NOTRUN
[fetch(): combined response Content-Type: text/html;x=" text/plain]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: NOTRUN
[fetch(): separate response Content-Type: text/html */*]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/html text/plain]
expected: NOTRUN
[Request: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: */* text/html]
expected: NOTRUN
[<iframe>: separate response Content-Type: text/plain;charset=gbk text/html]
expected: FAIL
[fetch(): combined response Content-Type: text/html */*;charset=gbk]
expected: NOTRUN
[Response: combined response Content-Type: text/plain ]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/plain;charset=gbk text/plain]
expected: NOTRUN
[Request: combined response Content-Type: text/html text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: FAIL
[Request: combined response Content-Type: text/plain */*]
expected: NOTRUN
[fetch(): separate response Content-Type: text/html;charset=gbk text/plain text/html]
expected: NOTRUN
[Request: combined response Content-Type: text/plain;charset=gbk text/plain]
expected: NOTRUN
[fetch(): combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: FAIL
[fetch(): combined response Content-Type: text/plain;charset=gbk text/html]
expected: NOTRUN
expected: FAIL
[fetch(): separate response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: NOTRUN
[fetch(): combined response Content-Type: text/html;" text/plain]
expected: NOTRUN
[Response: combined response Content-Type: text/html text/plain]
expected: NOTRUN
[fetch(): separate response Content-Type: text/plain ]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/plain;charset=gbk text/plain]
expected: FAIL
[<iframe>: separate response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL
[fetch(): combined response Content-Type: text/html;" \\" text/plain]
expected: NOTRUN
[fetch(): separate response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: NOTRUN
[Request: combined response Content-Type: text/html;x=" text/plain]
expected: NOTRUN
[Response: combined response Content-Type: text/plain */*]
expected: NOTRUN
[<iframe>: separate response Content-Type: */* text/html]
expected: FAIL
[Request: combined response Content-Type: text/html */*;charset=gbk]
expected: NOTRUN
[<iframe>: separate response Content-Type: text/plain;charset=gbk text/plain]
expected: FAIL
[Response: combined response Content-Type: text/plain]
expected: TIMEOUT
[<iframe>: combined response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: FAIL
[fetch(): combined response Content-Type: text/html */*]
expected: NOTRUN
expected: FAIL
[Request: combined response Content-Type: text/html;" \\" text/plain]
expected: NOTRUN
[fetch(): separate response Content-Type: text/html */*;charset=gbk]
expected: NOTRUN
expected: FAIL
[Response: combined response Content-Type: text/html;" text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" " text/plain]
expected: FAIL
[Request: combined response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: NOTRUN
[Response: combined response Content-Type: text/html;" " text/plain]
expected: NOTRUN
[<iframe>: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: FAIL
[Response: combined response Content-Type: text/html;x=" text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: FAIL
[fetch(): separate response Content-Type: text/plain;charset=gbk text/plain]
expected: NOTRUN
[<iframe>: combined response Content-Type: text/plain ]
expected: FAIL
[<iframe>: combined response Content-Type: text/html text/plain]
expected: FAIL
[Request: combined response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: NOTRUN
[<iframe>: combined response Content-Type: text/plain]
expected: FAIL
[Response: combined response Content-Type: */* text/html]
expected: NOTRUN
[<iframe>: separate response Content-Type: text/html;" " text/plain]
expected: FAIL
[fetch(): separate response Content-Type: text/plain */*;charset=gbk]
expected: NOTRUN
[<iframe>: separate response Content-Type: text/html text/plain]
expected: FAIL
[Response: combined response Content-Type: text/html;" \\" text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: FAIL
[Request: combined response Content-Type: text/plain;charset=gbk text/html]
expected: NOTRUN
[fetch(): separate response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: NOTRUN
[Response: combined response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: NOTRUN
[Response: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: NOTRUN
[Response: combined response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: NOTRUN
[fetch(): combined response Content-Type: text/plain]
expected: FAIL
[fetch(): separate response Content-Type: text/plain */*]
expected: NOTRUN
[<iframe>: separate response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: FAIL
[Request: combined response Content-Type: text/plain ]
expected: NOTRUN
[Response: combined response Content-Type: text/html */*;charset=gbk]
expected: NOTRUN
[Request: combined response Content-Type: text/html;" " text/plain]
expected: NOTRUN
[fetch(): combined response Content-Type: text/plain */*]
expected: NOTRUN
[Request: combined response Content-Type: text/plain */*;charset=gbk]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: FAIL
[fetch(): separate response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: NOTRUN
[fetch(): combined response Content-Type: text/plain */*;charset=gbk]
expected: NOTRUN
[fetch(): separate response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: NOTRUN
[Response: combined response Content-Type: text/plain;charset=gbk text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/plain */*]
expected: FAIL
[fetch(): separate response Content-Type: text/html text/plain]
expected: NOTRUN
[Request: combined response Content-Type: text/html;" text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: FAIL
[fetch(): combined response Content-Type: text/html;" " text/plain]
expected: NOTRUN
[fetch(): separate response Content-Type: text/html;" " text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: FAIL
[Response: combined response Content-Type: text/plain */*;charset=gbk]
expected: NOTRUN
[Request: combined response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: NOTRUN
[fetch(): combined response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: NOTRUN
expected: FAIL
[Response: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/plain;charset=gbk text/html]
expected: FAIL
[<iframe>: separate response Content-Type: text/html;charset=gbk text/plain text/html]
expected: FAIL
[<iframe>: separate response Content-Type: */* text/html]
expected: FAIL

View file

@ -8,225 +8,3 @@
expected: ERROR
[stream-safe-creation]
expected: FAIL
[stream-safe-creation.any.worker.html]
expected: TIMEOUT
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyResponse']
expected: TIMEOUT
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[stream-safe-creation.any.html]
expected: TIMEOUT
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyResponse']
expected: TIMEOUT
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyResponse']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.start accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.start accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.type accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.type accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.size accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.size accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[throwing Object.prototype.highWaterMark accessor should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.highWaterMark accessor returning invalid value should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN
[Object.prototype.start function which errors the stream should not affect stream creation by 'consumeNonEmptyRequest']
expected: NOTRUN

View file

@ -1,82 +1,8 @@
[mime-type.any.worker.html]
expected: TIMEOUT
[Response: MIME type for Blob from empty body]
expected: TIMEOUT
[Request: MIME type for Blob from empty body with Content-Type]
expected: NOTRUN
[Response: MIME type for Blob from empty body with Content-Type]
expected: NOTRUN
[Request: MIME type for Blob]
expected: NOTRUN
[Response: MIME type for Blob]
expected: NOTRUN
[Request: MIME type for Blob with non-empty type]
expected: NOTRUN
[Response: MIME type for Blob with non-empty type]
expected: NOTRUN
[Request: Extract a MIME type with clone]
expected: NOTRUN
[Response: Extract a MIME type with clone]
expected: NOTRUN
[Request: Content-Type in headers wins Blob"s type]
expected: NOTRUN
[Response: Content-Type in headers wins Blob"s type]
expected: NOTRUN
[Request: setting missing Content-Type in headers and it wins Blob"s type]
expected: NOTRUN
[Response: setting missing Content-Type in headers and it wins Blob"s type]
expected: NOTRUN
expected: FAIL
[mime-type.any.html]
expected: TIMEOUT
[Response: MIME type for Blob from empty body]
expected: TIMEOUT
[Request: MIME type for Blob from empty body with Content-Type]
expected: NOTRUN
[Response: MIME type for Blob from empty body with Content-Type]
expected: NOTRUN
[Request: MIME type for Blob]
expected: NOTRUN
[Response: MIME type for Blob]
expected: NOTRUN
[Request: MIME type for Blob with non-empty type]
expected: NOTRUN
[Response: MIME type for Blob with non-empty type]
expected: NOTRUN
[Request: Extract a MIME type with clone]
expected: NOTRUN
[Response: Extract a MIME type with clone]
expected: NOTRUN
[Request: Content-Type in headers wins Blob"s type]
expected: NOTRUN
[Response: Content-Type in headers wins Blob"s type]
expected: NOTRUN
[Request: setting missing Content-Type in headers and it wins Blob"s type]
expected: NOTRUN
[Response: setting missing Content-Type in headers and it wins Blob"s type]
expected: NOTRUN
expected: FAIL

View file

@ -5,91 +5,52 @@
expected: ERROR
[response-consume-empty.any.worker.html]
expected: TIMEOUT
[Consume response's body as text]
expected: TIMEOUT
expected: FAIL
[Consume response's body as json (error case)]
expected: NOTRUN
expected: FAIL
[Consume response's body as blob]
expected: NOTRUN
[Consume empty URLSearchParams response body as text]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData without correct type (error case)]
expected: NOTRUN
[Consume empty blob response body as text]
expected: NOTRUN
[Consume empty text response body as arrayBuffer]
expected: NOTRUN
[Consume empty text response body as text]
expected: NOTRUN
[Consume empty blob response body as arrayBuffer]
expected: NOTRUN
expected: FAIL
[Consume response's body as arrayBuffer]
expected: NOTRUN
expected: FAIL
[Consume empty FormData response body as text]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData with correct multipart type (error case)]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData with correct urlencoded type]
expected: NOTRUN
[Consume empty ArrayBuffer response body as text]
expected: NOTRUN
expected: FAIL
[response-consume-empty.any.html]
expected: TIMEOUT
[Consume response's body as text]
expected: TIMEOUT
expected: FAIL
[Consume response's body as json (error case)]
expected: NOTRUN
expected: FAIL
[Consume response's body as blob]
expected: NOTRUN
[Consume empty URLSearchParams response body as text]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData without correct type (error case)]
expected: NOTRUN
[Consume empty blob response body as text]
expected: NOTRUN
[Consume empty text response body as arrayBuffer]
expected: NOTRUN
[Consume empty text response body as text]
expected: NOTRUN
[Consume empty blob response body as arrayBuffer]
expected: NOTRUN
expected: FAIL
[Consume response's body as arrayBuffer]
expected: NOTRUN
expected: FAIL
[Consume empty FormData response body as text]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData with correct multipart type (error case)]
expected: NOTRUN
expected: FAIL
[Consume response's body as formData with correct urlencoded type]
expected: NOTRUN
[Consume empty ArrayBuffer response body as text]
expected: NOTRUN
expected: FAIL

View file

@ -1,298 +1,156 @@
[response.window.html]
expected: TIMEOUT
[fetch(): combined response Content-Type: text/plain ]
expected: NOTRUN
[Response: combined response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: NOTRUN
[Request: combined response Content-Type: */* text/html]
expected: NOTRUN
expected: FAIL
[fetch(): separate response Content-Type: text/html;" \\" text/plain]
expected: NOTRUN
[Response: combined response Content-Type: text/html */*]
expected: NOTRUN
[fetch(): separate response Content-Type: */* text/html]
expected: NOTRUN
expected: FAIL
[fetch(): separate response Content-Type: text/html;" text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/plain */*;charset=gbk]
expected: FAIL
[fetch(): separate response Content-Type: text/html;x=" text/plain]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: NOTRUN
expected: FAIL
[Request: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: NOTRUN
[Response: combined response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: NOTRUN
[fetch(): separate response Content-Type: text/plain;charset=gbk text/html]
expected: NOTRUN
[Request: combined response Content-Type: text/html */*]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/plain]
expected: FAIL
[Request: combined response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: NOTRUN
[Response: combined response Content-Type: text/plain;charset=gbk text/html]
expected: NOTRUN
[fetch(): combined response Content-Type: text/html;x=" text/plain]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: NOTRUN
[fetch(): separate response Content-Type: text/html */*]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/html text/plain]
expected: NOTRUN
[Request: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: */* text/html]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/html */*;charset=gbk]
expected: NOTRUN
[Response: combined response Content-Type: text/plain ]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/plain;charset=gbk text/plain]
expected: NOTRUN
[Request: combined response Content-Type: text/html text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: FAIL
[Request: combined response Content-Type: text/plain */*]
expected: NOTRUN
[fetch(): separate response Content-Type: text/html;charset=gbk text/plain text/html]
expected: NOTRUN
[Request: combined response Content-Type: text/plain;charset=gbk text/plain]
expected: NOTRUN
[fetch(): combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: FAIL
[fetch(): combined response Content-Type: text/plain;charset=gbk text/html]
expected: NOTRUN
expected: FAIL
[fetch(): separate response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: NOTRUN
[fetch(): combined response Content-Type: text/html;" text/plain]
expected: NOTRUN
[Response: combined response Content-Type: text/html text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/plain;charset=gbk text/plain]
expected: FAIL
[fetch(): combined response Content-Type: text/html;" \\" text/plain]
expected: NOTRUN
[fetch(): separate response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: NOTRUN
[Request: combined response Content-Type: text/html;x=" text/plain]
expected: NOTRUN
[Response: combined response Content-Type: text/plain */*]
expected: NOTRUN
[Request: combined response Content-Type: text/html */*;charset=gbk]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/plain;charset=gbk text/plain]
expected: FAIL
[Response: combined response Content-Type: text/plain]
expected: TIMEOUT
[<iframe>: combined response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: FAIL
[fetch(): combined response Content-Type: text/html */*]
expected: NOTRUN
expected: FAIL
[Request: combined response Content-Type: text/html;" \\" text/plain]
expected: NOTRUN
[fetch(): separate response Content-Type: text/html */*;charset=gbk]
expected: NOTRUN
expected: FAIL
[Response: combined response Content-Type: text/html;" text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/html;" " text/plain]
expected: FAIL
[Request: combined response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: NOTRUN
[Response: combined response Content-Type: text/html;" " text/plain]
expected: NOTRUN
[<iframe>: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: FAIL
[Response: combined response Content-Type: text/html;x=" text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: FAIL
[fetch(): separate response Content-Type: text/plain;charset=gbk text/plain]
expected: NOTRUN
[<iframe>: combined response Content-Type: text/plain ]
expected: FAIL
[<iframe>: combined response Content-Type: text/html text/plain]
expected: FAIL
[Request: combined response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: NOTRUN
[<iframe>: combined response Content-Type: text/plain]
expected: FAIL
[Response: combined response Content-Type: */* text/html]
expected: NOTRUN
[<iframe>: separate response Content-Type: text/html;" " text/plain]
expected: FAIL
[fetch(): separate response Content-Type: text/plain */*;charset=gbk]
expected: NOTRUN
[<iframe>: separate response Content-Type: text/html text/plain]
expected: FAIL
[Response: combined response Content-Type: text/html;" \\" text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: FAIL
[Request: combined response Content-Type: text/plain;charset=gbk text/html]
expected: NOTRUN
[fetch(): separate response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: NOTRUN
[Response: combined response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: NOTRUN
[Response: combined response Content-Type: text/html;charset=gbk text/plain text/html]
expected: NOTRUN
[Response: combined response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: NOTRUN
[fetch(): combined response Content-Type: text/plain]
expected: FAIL
[fetch(): separate response Content-Type: text/plain */*]
expected: NOTRUN
[<iframe>: separate response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: FAIL
[Request: combined response Content-Type: text/plain ]
expected: NOTRUN
[Response: combined response Content-Type: text/html */*;charset=gbk]
expected: NOTRUN
[Request: combined response Content-Type: text/html;" " text/plain]
expected: NOTRUN
[fetch(): combined response Content-Type: text/plain */*]
expected: NOTRUN
[Request: combined response Content-Type: text/plain */*;charset=gbk]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: FAIL
[fetch(): separate response Content-Type: text/plain;charset=gbk text/html;charset=windows-1254]
expected: NOTRUN
[fetch(): combined response Content-Type: text/plain */*;charset=gbk]
expected: NOTRUN
[fetch(): separate response Content-Type: text/plain;charset=gbk;x=foo text/plain]
expected: NOTRUN
expected: FAIL
[fetch(): combined response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: NOTRUN
[Response: combined response Content-Type: text/plain;charset=gbk text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: combined response Content-Type: text/plain */*]
expected: FAIL
[fetch(): separate response Content-Type: text/html text/plain]
expected: NOTRUN
[Request: combined response Content-Type: text/html;" text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: FAIL
[fetch(): combined response Content-Type: text/html;" " text/plain]
expected: NOTRUN
[fetch(): separate response Content-Type: text/html;" " text/plain]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/plain;charset=gbk text/plain;charset=windows-1252]
expected: FAIL
[Response: combined response Content-Type: text/plain */*;charset=gbk]
expected: NOTRUN
[Request: combined response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: NOTRUN
[fetch(): combined response Content-Type: text/html;charset=gbk text/html;x=",text/plain]
expected: NOTRUN
expected: FAIL
[Response: combined response Content-Type: text/html;" \\" text/plain ";charset=GBK]
expected: NOTRUN
expected: FAIL
[<iframe>: separate response Content-Type: text/plain;charset=gbk text/html]
expected: FAIL
@ -302,6 +160,3 @@
[<iframe>: separate response Content-Type: */* text/html]
expected: FAIL
[fetch(): separate response Content-Type: text/plain ]
expected: NOTRUN