Enable wpt tests for Request and Response APIs

This commit is contained in:
Jeena Lee 2016-08-04 10:47:35 -07:00
parent 504954890e
commit 543262b5d3
30 changed files with 509 additions and 1 deletions

View file

@ -0,0 +1,5 @@
[response-cancel-stream.html]
type: testharness
[Cancelling a starting blob Response stream]
expected: FAIL

View file

@ -0,0 +1,3 @@
[response-clone.html]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,5 @@
[response-consume-empty.html]
type: testharness
[Consume response's body as text]
expected: FAIL

View file

@ -0,0 +1,5 @@
[response-consume-stream.html]
type: testharness
[Read empty text response's body as readableStream]
expected: FAIL

View file

@ -0,0 +1,5 @@
[response-consume.html]
type: testharness
[Consume response's body as text]
expected: FAIL

View file

@ -0,0 +1,32 @@
[response-error.html]
type: testharness
[Throws RangeError when responseInit's status is 0]
expected: FAIL
[Throws RangeError when responseInit's status is 100]
expected: FAIL
[Throws RangeError when responseInit's status is 199]
expected: FAIL
[Throws RangeError when responseInit's status is 600]
expected: FAIL
[Throws RangeError when responseInit's status is 1000]
expected: FAIL
[Throws TypeError when responseInit's statusText is \n]
expected: FAIL
[Throws TypeError when responseInit's statusText is Ā]
expected: FAIL
[Throws TypeError when building a response with body and a body status of 204]
expected: FAIL
[Throws TypeError when building a response with body and a body status of 205]
expected: FAIL
[Throws TypeError when building a response with body and a body status of 304]
expected: FAIL

View file

@ -0,0 +1,3 @@
[response-idl.html]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,3 @@
[response-init-001.html]
type: testharness
expected: TIMEOUT

View file

@ -0,0 +1,8 @@
[response-init-002.html]
type: testharness
[Initialize Response with headers values]
expected: FAIL
[Initialize Response's body with application/octet-binary]
expected: FAIL

View file

@ -0,0 +1,5 @@
[response-static-error.html]
type: testharness
[Check response returned by static method error()]
expected: FAIL

View file

@ -0,0 +1,35 @@
[response-static-redirect.html]
type: testharness
[Check default redirect response]
expected: FAIL
[Check response returned by static method redirect(), status = 301]
expected: FAIL
[Check response returned by static method redirect(), status = 302]
expected: FAIL
[Check response returned by static method redirect(), status = 303]
expected: FAIL
[Check response returned by static method redirect(), status = 307]
expected: FAIL
[Check response returned by static method redirect(), status = 308]
expected: FAIL
[Check error returned when giving invalid url to redirect()]
expected: FAIL
[Check error returned when giving invalid status to redirect(), status = 200]
expected: FAIL
[Check error returned when giving invalid status to redirect(), status = 309]
expected: FAIL
[Check error returned when giving invalid status to redirect(), status = 400]
expected: FAIL
[Check error returned when giving invalid status to redirect(), status = 500]
expected: FAIL

View file

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

View file

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

View file

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

View file

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

View file

@ -0,0 +1,5 @@
[response-stream-disturbed-5.html]
type: testharness
[Getting a body reader after consuming as blob]
expected: FAIL