mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
impl Body mixin for dom::Response and dom::Request
This commit is contained in:
parent
6a0c70a222
commit
a5e5cd0e9e
18 changed files with 332 additions and 167 deletions
|
@ -1,17 +1,8 @@
|
|||
[request-consume-empty.html]
|
||||
type: testharness
|
||||
[Consume request's body as text]
|
||||
expected: FAIL
|
||||
|
||||
[Consume request's body as blob]
|
||||
expected: FAIL
|
||||
|
||||
[Consume request's body as arrayBuffer]
|
||||
expected: FAIL
|
||||
|
||||
[Consume request's body as json]
|
||||
expected: FAIL
|
||||
|
||||
[Consume request's body as formData]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -21,9 +12,3 @@
|
|||
[Consume empty text request body as arrayBuffer]
|
||||
expected: FAIL
|
||||
|
||||
[Consume empty blob request body as text]
|
||||
expected: FAIL
|
||||
|
||||
[Consume empty text request body as text]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
[request-consume.html]
|
||||
type: testharness
|
||||
[Consume String request's body as text]
|
||||
expected: FAIL
|
||||
|
||||
[Consume String request's body as blob]
|
||||
expected: FAIL
|
||||
|
||||
[Consume String request's body as arrayBuffer]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -15,30 +9,9 @@
|
|||
[Consume String request's body as formData]
|
||||
expected: FAIL
|
||||
|
||||
[Consume blob response's body as blob]
|
||||
expected: FAIL
|
||||
|
||||
[Consume blob response's body as text]
|
||||
expected: FAIL
|
||||
|
||||
[Consume blob response's body as json]
|
||||
expected: FAIL
|
||||
|
||||
[Consume blob response's body as arrayBuffer]
|
||||
expected: FAIL
|
||||
|
||||
[Consume JSON from text: '"null"']
|
||||
expected: FAIL
|
||||
|
||||
[Consume JSON from text: '"1"']
|
||||
expected: FAIL
|
||||
|
||||
[Consume JSON from text: '"true"']
|
||||
expected: FAIL
|
||||
|
||||
[Consume JSON from text: '"\\"string\\""']
|
||||
expected: FAIL
|
||||
|
||||
[Trying to consume bad JSON text as JSON: 'undefined']
|
||||
expected: FAIL
|
||||
|
||||
|
@ -51,9 +24,6 @@
|
|||
[Trying to consume bad JSON text as JSON: '[']
|
||||
expected: FAIL
|
||||
|
||||
[Consume String request's body as JSON]
|
||||
expected: FAIL
|
||||
|
||||
[Consume ArrayBuffer request's body as text]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -117,6 +87,3 @@
|
|||
[Consume FormData request's body as FormData]
|
||||
expected: FAIL
|
||||
|
||||
[Consume blob response's body as blob (empty blob as input)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
[request-disturbed.html]
|
||||
type: testharness
|
||||
expected: ERROR
|
||||
[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
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
[request-error.html]
|
||||
type: testharness
|
||||
[Request should get its content-type from the body if none is provided]
|
||||
expected: FAIL
|
||||
|
|
@ -1,8 +1,5 @@
|
|||
[request-headers.html]
|
||||
type: testharness
|
||||
[Request should get its content-type from the body if none is provided]
|
||||
expected: FAIL
|
||||
|
||||
[Testing request header creations with various objects]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
[request-init-002.html]
|
||||
type: testharness
|
||||
[Initialize Request's body with undefined]
|
||||
expected: FAIL
|
||||
|
||||
[Initialize Request's body with null]
|
||||
expected: FAIL
|
||||
|
||||
[Initialize Request's body with application/octet-binary]
|
||||
expected: FAIL
|
||||
|
||||
[Initialize Request's body with multipart/form-data]
|
||||
expected: FAIL
|
||||
|
||||
[Initialize Request's body with text/plain;charset=UTF-8]
|
||||
expected: FAIL
|
||||
|
||||
[Initialize Request's body with application/x-www-form-urlencoded;charset=UTF-8]
|
||||
expected: FAIL
|
||||
|
|
@ -1,14 +1,5 @@
|
|||
[request-init-003.sub.html]
|
||||
type: testharness
|
||||
[Check request values when initialized from Request]
|
||||
expected: FAIL
|
||||
|
||||
[Check request values when initialized from Request and init values]
|
||||
expected: FAIL
|
||||
|
||||
[Check request values when initialized from url string]
|
||||
expected: FAIL
|
||||
|
||||
[Check request values when initialized from url and init values]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -3,18 +3,6 @@
|
|||
[Request has arrayBuffer method]
|
||||
expected: FAIL
|
||||
|
||||
[Request has blob method]
|
||||
expected: FAIL
|
||||
|
||||
[Request has formData method]
|
||||
expected: FAIL
|
||||
|
||||
[Request has json method]
|
||||
expected: FAIL
|
||||
|
||||
[Request has text method]
|
||||
expected: FAIL
|
||||
|
||||
[Check referrer attribute]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,17 +1,8 @@
|
|||
[response-consume-empty.html]
|
||||
type: testharness
|
||||
[Consume response's body as text]
|
||||
expected: FAIL
|
||||
|
||||
[Consume response's body as blob]
|
||||
expected: FAIL
|
||||
|
||||
[Consume response's body as arrayBuffer]
|
||||
expected: FAIL
|
||||
|
||||
[Consume response's body as json]
|
||||
expected: FAIL
|
||||
|
||||
[Consume response's body as formData]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -21,9 +12,3 @@
|
|||
[Consume empty text response body as arrayBuffer]
|
||||
expected: FAIL
|
||||
|
||||
[Consume empty blob response body as text]
|
||||
expected: FAIL
|
||||
|
||||
[Consume empty text response body as text]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,29 +1,11 @@
|
|||
[response-consume.html]
|
||||
type: testharness
|
||||
[Consume response's body as text]
|
||||
expected: FAIL
|
||||
|
||||
[Consume response's body as blob]
|
||||
expected: FAIL
|
||||
|
||||
[Consume response's body as arrayBuffer]
|
||||
expected: FAIL
|
||||
|
||||
[Consume response's body as json]
|
||||
expected: FAIL
|
||||
|
||||
[Consume response's body as formData]
|
||||
expected: FAIL
|
||||
|
||||
[Consume blob response's body as blob]
|
||||
expected: FAIL
|
||||
|
||||
[Consume blob response's body as text]
|
||||
expected: FAIL
|
||||
|
||||
[Consume blob response's body as json]
|
||||
expected: FAIL
|
||||
|
||||
[Consume blob response's body as arrayBuffer]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,17 +1,5 @@
|
|||
[response-init-002.html]
|
||||
type: testharness
|
||||
[Initialize Response's body with application/octet-binary]
|
||||
expected: FAIL
|
||||
|
||||
[Initialize Response's body with multipart/form-data]
|
||||
expected: FAIL
|
||||
|
||||
[Initialize Response's body with application/x-www-form-urlencoded;charset=UTF-8]
|
||||
expected: FAIL
|
||||
|
||||
[Initialize Response's body with text/plain;charset=UTF-8]
|
||||
expected: FAIL
|
||||
|
||||
[Read Response's body as readableStream]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue