mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d
This commit is contained in:
parent
65dd6d4340
commit
ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions
|
@ -15,6 +15,8 @@ function checkContentType(contentType, body)
|
|||
expectedContentType = null;
|
||||
else if (body instanceof Blob)
|
||||
expectedContentType = body.type ? body.type : null;
|
||||
else if (body instanceof URLSearchParams)
|
||||
expectedContentType = "application/x-www-form-urlencoded;charset=UTF-8";
|
||||
|
||||
assert_equals(contentType , expectedContentType, "Request should have header content-type: " + expectedContentType);
|
||||
}
|
||||
|
@ -49,6 +51,7 @@ requestHeaders("Fetch with PUT with body", url, "PUT", "Request's body", locatio
|
|||
requestHeaders("Fetch with POST without body", url, "POST", null, location.origin, "0");
|
||||
requestHeaders("Fetch with POST with text body", url, "POST", "Request's body", location.origin, "14");
|
||||
requestHeaders("Fetch with POST with FormData body", url, "POST", function() { return new FormData(); }, location.origin);
|
||||
requestHeaders("Fetch with POST with URLSearchParams body", url, "POST", function() { return new URLSearchParams("name=value"); }, location.origin, "10");
|
||||
requestHeaders("Fetch with POST with Blob body", url, "POST", new Blob(["Test"]), location.origin, "4");
|
||||
requestHeaders("Fetch with POST with ArrayBuffer body", url, "POST", new ArrayBuffer(4), location.origin, "4");
|
||||
requestHeaders("Fetch with POST with Uint8Array body", url, "POST", new Uint8Array(4), location.origin, "4");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue