|
1 | 1 |
|
2 |
| -FAIL Check response returned by static json() with init undefined promise_test: Unhandled rejection with value: object "TypeError: Response.json is not a function. (In 'Response.json("hello world", init)', 'Response.json' is undefined)" |
3 |
| -FAIL Check response returned by static json() with init {"status":400} promise_test: Unhandled rejection with value: object "TypeError: Response.json is not a function. (In 'Response.json("hello world", init)', 'Response.json' is undefined)" |
4 |
| -FAIL Check response returned by static json() with init {"statusText":"foo"} promise_test: Unhandled rejection with value: object "TypeError: Response.json is not a function. (In 'Response.json("hello world", init)', 'Response.json' is undefined)" |
5 |
| -FAIL Check response returned by static json() with init {"headers":{}} promise_test: Unhandled rejection with value: object "TypeError: Response.json is not a function. (In 'Response.json("hello world", init)', 'Response.json' is undefined)" |
6 |
| -FAIL Check response returned by static json() with init {"headers":{"content-type":"foo/bar"}} promise_test: Unhandled rejection with value: object "TypeError: Response.json is not a function. (In 'Response.json("hello world", init)', 'Response.json' is undefined)" |
7 |
| -FAIL Check response returned by static json() with init {"headers":{"x-foo":"bar"}} promise_test: Unhandled rejection with value: object "TypeError: Response.json is not a function. (In 'Response.json("hello world", init)', 'Response.json' is undefined)" |
| 2 | +PASS Check response returned by static json() with init undefined |
| 3 | +PASS Check response returned by static json() with init {"status":400} |
| 4 | +PASS Check response returned by static json() with init {"statusText":"foo"} |
| 5 | +PASS Check response returned by static json() with init {"headers":{}} |
| 6 | +PASS Check response returned by static json() with init {"headers":{"content-type":"foo/bar"}} |
| 7 | +PASS Check response returned by static json() with init {"headers":{"x-foo":"bar"}} |
8 | 8 | PASS Throws TypeError when calling static json() with a status of 204
|
9 | 9 | PASS Throws TypeError when calling static json() with a status of 205
|
10 | 10 | PASS Throws TypeError when calling static json() with a status of 304
|
11 |
| -FAIL Check static json() encodes JSON objects correctly promise_test: Unhandled rejection with value: object "TypeError: Response.json is not a function. (In 'Response.json({ foo: "bar" })', 'Response.json' is undefined)" |
| 11 | +PASS Check static json() encodes JSON objects correctly |
12 | 12 | PASS Check static json() throws when data is not encodable
|
13 | 13 | PASS Check static json() throws when data is circular
|
14 |
| -FAIL Check static json() propagates JSON serializer errors assert_throws_js: function "function () { |
15 |
| - Response.json({ get foo() { throw new CustomError("bar") }}); |
16 |
| - }" threw object "TypeError: Response.json is not a function. (In 'Response.json({ get foo() { throw new CustomError("bar") }})', 'Response.json' is undefined)" ("TypeError") expected instance of function "class CustomError extends Error { |
17 |
| - name = "CustomError"; |
18 |
| - }" ("CustomError") |
| 14 | +PASS Check static json() propagates JSON serializer errors |
19 | 15 |
|
0 commit comments