mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +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
|
@ -3,10 +3,10 @@ if (this.document === undefined) {
|
|||
importScripts("../resources/utils.js");
|
||||
}
|
||||
|
||||
function checkFetchResponse(url, data, mime, fetchMode) {
|
||||
function checkFetchResponse(url, data, mime, fetchMode, method) {
|
||||
var cut = (url.length >= 40) ? "[...]" : "";
|
||||
desc = "Fetching " + url.substring(0, 40) + cut + " is OK";
|
||||
var init = { };
|
||||
desc = "Fetching " + (method ? "[" + method + "] " : "") + url.substring(0, 40) + cut + " is OK";
|
||||
var init = {"method": method || "GET"};
|
||||
if (fetchMode) {
|
||||
init.mode = fetchMode;
|
||||
desc += " (" + fetchMode + ")";
|
||||
|
@ -31,6 +31,8 @@ checkFetchResponse("data:text/plain;base64,cmVzcG9uc2UncyBib2R5", "response's bo
|
|||
checkFetchResponse("data:image/png;base64,cmVzcG9uc2UncyBib2R5",
|
||||
"response's body",
|
||||
"image/png");
|
||||
checkFetchResponse("data:,response%27s%20body", "response's body", "text/plain;charset=US-ASCII", null, "POST");
|
||||
checkFetchResponse("data:,response%27s%20body", "response's body", "text/plain;charset=US-ASCII", null, "HEAD");
|
||||
|
||||
function checkKoUrl(url, method, desc) {
|
||||
var cut = (url.length >= 40) ? "[...]" : "";
|
||||
|
@ -41,7 +43,5 @@ function checkKoUrl(url, method, desc) {
|
|||
}
|
||||
|
||||
checkKoUrl("data:notAdataUrl.com", "GET");
|
||||
checkKoUrl("data:,response%27s%20body", "POST");
|
||||
checkKoUrl("data:,response%27s%20body", "HEAD");
|
||||
|
||||
done();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue