mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update web-platform-tests to revision 4f397167b4ed552a02201c92d363cfaecfe2c7f0
This commit is contained in:
parent
73b5bf201f
commit
84b40513c3
182 changed files with 4779 additions and 1937 deletions
|
@ -1,33 +0,0 @@
|
|||
if (this.document === undefined) {
|
||||
importScripts("/resources/testharness.js");
|
||||
importScripts("../resources/utils.js");
|
||||
}
|
||||
|
||||
function checkKoUrl(url, desc) {
|
||||
if (!desc)
|
||||
desc = "Fetching " + url.substring(0, 45) + " is KO"
|
||||
promise_test(function(test) {
|
||||
var promise = fetch(url);
|
||||
return promise_rejects(test, new TypeError(), promise);
|
||||
}, desc);
|
||||
}
|
||||
|
||||
var urlWithoutScheme = "://{{host}}:{{ports[http][0]}}/";
|
||||
checkKoUrl("aaa" + urlWithoutScheme);
|
||||
checkKoUrl("cap" + urlWithoutScheme);
|
||||
checkKoUrl("cid" + urlWithoutScheme);
|
||||
checkKoUrl("dav" + urlWithoutScheme);
|
||||
checkKoUrl("dict" + urlWithoutScheme);
|
||||
checkKoUrl("dns" + urlWithoutScheme);
|
||||
checkKoUrl("geo" + urlWithoutScheme);
|
||||
checkKoUrl("im" + urlWithoutScheme);
|
||||
checkKoUrl("imap" + urlWithoutScheme);
|
||||
checkKoUrl("ipp" + urlWithoutScheme);
|
||||
checkKoUrl("ldap" + urlWithoutScheme);
|
||||
checkKoUrl("mailto" + urlWithoutScheme);
|
||||
checkKoUrl("nfs" + urlWithoutScheme);
|
||||
checkKoUrl("pop" + urlWithoutScheme);
|
||||
checkKoUrl("rtsp" + urlWithoutScheme);
|
||||
checkKoUrl("snmp" + urlWithoutScheme);
|
||||
|
||||
done();
|
Loading…
Add table
Add a link
Reference in a new issue