request-error.any.html

FAILExpected13 of 22 subtests pass307 ms

Details

Test
/fetch/api/request/request-error.any.html
Harness
OK

Subtests

StatusSubtestMessage
FAILRequestInit's window is not null
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
PASSInput URL is not valid
FAILInput URL has credentials
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
FAILRequestInit's mode is navigate
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
FAILRequestInit's referrer is invalid
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
PASSRequestInit's method is invalid
PASSRequestInit's method is forbidden
FAILRequestInit's mode is no-cors and method is not simple
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
PASSRequestInit's cache mode is only-if-cached and mode is not same-origin
PASSRequest with cache mode: only-if-cached and fetch mode cors
PASSRequest with cache mode: only-if-cached and fetch mode no-cors
FAILBad referrerPolicy init parameter value
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
FAILBad mode init parameter value
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
FAILBad credentials init parameter value
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
assert_throws_js: Expect TypeError exception function "() => new Request(...args)" did not throw
PASSBad cache init parameter value
PASSBad redirect init parameter value
FAILRequest error
assert_throws_js: Calling Request constructor without 'new' must throw function "() => Request("about:blank")" did not throw
assert_throws_js: Calling Request constructor without 'new' must throw function "() => Request("about:blank")" did not throw
PASSRequest should get its content-type from the init request
PASSRequest should not get its content-type from the init request if init headers are provided
PASSRequest should get its content-type from the body if none is provided
PASSRequest should get its content-type from init headers if one is provided
PASSRequest with cache mode: only-if-cached and fetch mode: same-origin