Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /fetch/api/basic/request-head.any.html - WPT Dashboard Interop Dashboard
- /fetch/api/basic/request-head.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /fetch/api/basic/request-head.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /fetch/api/basic/request-head.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=window,worker
promise_test(function(test) {
var requestInit = {"method": "HEAD", "body": "test"};
return promise_rejects_js(test, TypeError, fetch(".", requestInit));
}, "Fetch with HEAD with body");