mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update web-platform-tests to revision 346d5b51a122f7bb1c7747064499ef281a0200f7
This commit is contained in:
parent
581c8ba1c8
commit
79b1e6c40c
1728 changed files with 20243 additions and 5349 deletions
|
@ -32,7 +32,17 @@ function checkKoUrl(url, method, desc) {
|
|||
var blob2 = new Blob(["Blob's data"], { "type" : "text/plain" });
|
||||
checkKoUrl("blob:http://{{domains[www]}}:{{ports[http][0]}}/", "GET",
|
||||
"Fetching [GET] blob:http://{{domains[www]}}:{{ports[http][0]}}/ is KO");
|
||||
checkKoUrl(URL.createObjectURL(blob2), "POST",
|
||||
"Fetching [POST] URL.createObjectURL(blob) is KO");
|
||||
|
||||
var invalidRequestMethods = [
|
||||
"POST",
|
||||
"OPTIONS",
|
||||
"HEAD",
|
||||
"PUT",
|
||||
"DELETE",
|
||||
"INVALID",
|
||||
];
|
||||
invalidRequestMethods.forEach(function(method) {
|
||||
checkKoUrl(URL.createObjectURL(blob2), method, "Fetching [" + method + "] URL.createObjectURL(blob) is KO");
|
||||
});
|
||||
|
||||
done();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue