Bug 1574475 - Don't check marionette FTP proxy support in test_session.js r=whimboo,marionette-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D112906
This commit is contained in:
Valentin Gosu 2021-04-22 13:41:35 +00:00
parent d871d384fe
commit 365941c6ee

View File

@ -22,12 +22,6 @@ const {
WebDriverSession,
} = ChromeUtils.import("chrome://marionette/content/session.js");
// FTP protocol handler is needed for ftpProxy tests
registerCleanupFunction(function() {
Preferences.reset("network.ftp.enabled");
});
Preferences.set("network.ftp.enabled", true);
add_test(function test_WebDriverSession_ctor() {
const session = new WebDriverSession();
@ -157,7 +151,6 @@ add_test(function test_Proxy_ctor() {
"proxyType",
"httpProxy",
"sslProxy",
"ftpProxy",
"socksProxy",
"socksVersion",
"proxyAutoconfigUrl",
@ -207,7 +200,7 @@ add_test(function test_Proxy_init() {
equal(Preferences.get("network.proxy.type"), 5);
// manual
for (let proxy of ["ftp", "http", "ssl", "socks"]) {
for (let proxy of ["http", "ssl", "socks"]) {
p = new Proxy();
p.proxyType = "manual";
p.noProxy = ["foo", "bar"];
@ -258,7 +251,7 @@ add_test(function test_Proxy_toJSON() {
p.proxyType = "manual";
deepEqual(p.toJSON(), { proxyType: "manual" });
for (let proxy of ["ftpProxy", "httpProxy", "sslProxy", "socksProxy"]) {
for (let proxy of ["httpProxy", "sslProxy", "socksProxy"]) {
let expected = { proxyType: "manual" };
p = new Proxy();
@ -336,7 +329,7 @@ add_test(function test_Proxy_fromJSON() {
p.proxyType = "manual";
deepEqual(p, Proxy.fromJSON({ proxyType: "manual" }));
for (let proxy of ["httpProxy", "sslProxy", "ftpProxy", "socksProxy"]) {
for (let proxy of ["httpProxy", "sslProxy", "socksProxy"]) {
let manual = { proxyType: "manual" };
// invalid hosts
@ -394,7 +387,7 @@ add_test(function test_Proxy_fromJSON() {
if (proxy === "socksProxy") {
p[`${proxy}Port`] = null;
} else {
let default_ports = { ftpProxy: 21, httpProxy: 80, sslProxy: 443 };
let default_ports = { httpProxy: 80, sslProxy: 443 };
p[`${proxy}Port`] = default_ports[proxy];
}