Provide the fetched data to fetch() consumers.

This commit is contained in:
Ms2ger 2016-10-05 15:25:21 +02:00
parent 6bd898626f
commit cb7e6715fb
9 changed files with 102 additions and 59 deletions

View file

@ -18,45 +18,21 @@
[UTF-8 without BOM with Response.text()]
expected: FAIL
[UTF-8 without BOM with fetched data (UTF-8 charset)]
expected: FAIL
[UTF-8 without BOM with fetched data (UTF-16 charset)]
expected: FAIL
[UTF-16BE with BOM decoded as UTF-8 with Request.text()]
expected: FAIL
[UTF-16BE with BOM decoded as UTF-8 with Response.text()]
expected: FAIL
[UTF-16BE with BOM decoded as UTF-8 with fetched data (UTF-8 charset)]
expected: FAIL
[UTF-16BE with BOM decoded as UTF-8 with fetched data (UTF-16 charset)]
expected: FAIL
[UTF-16LE with BOM decoded as UTF-8 with Request.text()]
expected: FAIL
[UTF-16LE with BOM decoded as UTF-8 with Response.text()]
expected: FAIL
[UTF-16LE with BOM decoded as UTF-8 with fetched data (UTF-8 charset)]
expected: FAIL
[UTF-16LE with BOM decoded as UTF-8 with fetched data (UTF-16 charset)]
expected: FAIL
[UTF-16 without BOM decoded as UTF-8 with Request.text()]
expected: FAIL
[UTF-16 without BOM decoded as UTF-8 with Response.text()]
expected: FAIL
[UTF-16 without BOM decoded as UTF-8 with fetched data (UTF-8 charset)]
expected: FAIL
[UTF-16 without BOM decoded as UTF-8 with fetched data (UTF-16 charset)]
expected: FAIL

View file

@ -12,3 +12,12 @@
[Consume empty text request body as arrayBuffer]
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

View file

@ -12,3 +12,6 @@
[Request construction failure should not set "bodyUsed"]
expected: FAIL
[Request without body cannot be disturbed]
expected: FAIL

View file

@ -1,14 +1,30 @@
[response-consume-empty.html]
type: testharness
expected: TIMEOUT
[Consume response's body as arrayBuffer]
expected: FAIL
expected: NOTRUN
[Consume response's body as formData]
expected: FAIL
expected: NOTRUN
[Consume empty blob response body as arrayBuffer]
expected: FAIL
expected: NOTRUN
[Consume empty text response body as arrayBuffer]
expected: FAIL
expected: NOTRUN
[Consume response's body as text]
expected: TIMEOUT
[Consume response's body as blob]
expected: NOTRUN
[Consume response's body as json]
expected: NOTRUN
[Consume empty blob response body as text]
expected: NOTRUN
[Consume empty text response body as text]
expected: NOTRUN

View file

@ -21,12 +21,6 @@
[Consume stream response's body as arrayBuffer]
expected: FAIL
[Consume fetched response's body as blob]
expected: FAIL
[Consume fetched response's body as text]
expected: FAIL
[Consume fetched response's body as arrayBuffer]
expected: FAIL