request-init-priority.any.html
Details
- Test
/fetch/api/request/request-init-priority.any.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| PASS | new Request() with a 'high' priority does not throw an error |
| PASS | new Request() with a 'low' priority does not throw an error |
| PASS | new Request() with a 'auto' priority does not throw an error |
| FAIL | new Request() throws a TypeError if any of RequestInit's members' values are invalid assert_throws_js: a new Request() must throw a TypeError if RequestInit's priority is an invalid value function "() => {
new Request("", {priority: 'invalid'});
}" did not throw |
| PASS | fetch() with a 'high' priority completes successfully |
| PASS | fetch() with a 'low' priority completes successfully |
| PASS | fetch() with a 'auto' priority completes successfully |
| FAIL | fetch() with an invalid priority returns a rejected promise with a TypeError assert_unreached: Should have rejected: undefined Reached unreachable code |