mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 15:28:39 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
33
testing/web-platform/tests/fetch/api/basic/scheme-others.js
Normal file
33
testing/web-platform/tests/fetch/api/basic/scheme-others.js
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
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