/fetch/api/request/request-error.any.html| status | subtest | message |
|---|---|---|
| FAIL | RequestInit's window is not null | assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw |
| PASS | Input URL is not valid | |
| FAIL | Input URL has credentials | assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw |
| FAIL | RequestInit's mode is navigate | assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw |
| FAIL | RequestInit's referrer is invalid | assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw |
| PASS | RequestInit's method is invalid | |
| PASS | RequestInit's method is forbidden | |
| FAIL | RequestInit's mode is no-cors and method is not simple | assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw |
| PASS | RequestInit's cache mode is only-if-cached and mode is not same-origin | |
| PASS | Request with cache mode: only-if-cached and fetch mode cors | |
| PASS | Request with cache mode: only-if-cached and fetch mode no-cors | |
| FAIL | Bad referrerPolicy init parameter value | assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw |
| FAIL | Bad mode init parameter value | assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw |
| FAIL | Bad credentials init parameter value | assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw |
| PASS | Bad cache init parameter value | |
| PASS | Bad redirect init parameter value | |
| FAIL | Request error | assert_throws_js: Calling Request constructor without 'new' must throw function "() => Request("about:blank")" did not throw |
| PASS | Request should get its content-type from the init request | |
| PASS | Request should not get its content-type from the init request if init headers are provided | |
| PASS | Request should get its content-type from the body if none is provided | |
| PASS | Request should get its content-type from init headers if one is provided | |
| FAIL | Request with cache mode: only-if-cached and fetch mode: same-origin | Unsupported cache mode: only-if-cached |
bundle built 2026-07-16T07:16:48.063Z