mirror of
https://github.com/servo/servo
synced 2026-05-03 21:02:19 +02:00
Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0
This commit is contained in:
10
tests/wpt/web-platform-tests/fetch/api/basic/request-head.js
Normal file
10
tests/wpt/web-platform-tests/fetch/api/basic/request-head.js
Normal file
@@ -0,0 +1,10 @@
|
||||
if (this.document === undefined) {
|
||||
importScripts("/resources/testharness.js");
|
||||
}
|
||||
|
||||
promise_test(function(test) {
|
||||
var requestInit = {"method": "HEAD", "body": "test"};
|
||||
return promise_rejects(test, new TypeError(), fetch(".", requestInit));
|
||||
}, "Fetch with HEAD with body");
|
||||
|
||||
done();
|
||||
Reference in New Issue
Block a user