зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1221187: testing/marionette: Adjust log levels to match new defaults; r=automatedtester
--HG-- extra : rebase_source : e8abfc0bfed9d74f90ba5f758a74ebbdd4da3605
This commit is contained in:
Родитель
3f1a51fad7
Коммит
522c335953
|
@ -666,14 +666,14 @@ GeckoDriver.prototype.setSessionCapabilities = function(newCaps) {
|
|||
// clone, overwrite, and set
|
||||
let caps = copy(this.sessionCapabilities);
|
||||
caps = copy(newCaps, caps);
|
||||
logger.config("Changing capabilities: " + JSON.stringify(caps));
|
||||
this.sessionCapabilities = caps;
|
||||
};
|
||||
|
||||
GeckoDriver.prototype.setUpProxy = function (proxy) {
|
||||
logger.debug("Setup Proxy has been entered. Will attempt to setup the following proxy");
|
||||
logger.debug("Proxy object contains " + JSON.stringify(proxy));
|
||||
if (typeof proxy == "object" && proxy.hasOwnProperty("proxyType")) {
|
||||
GeckoDriver.prototype.setUpProxy = function(proxy) {
|
||||
logger.debug("User-provided proxy settings: " + JSON.stringify(proxy));
|
||||
|
||||
if (typeof proxy == "object" && proxy.hasOwnProperty("proxyType")) {
|
||||
switch (proxy.proxyType.toUpperCase()) {
|
||||
case "MANUAL":
|
||||
Services.prefs.setIntPref("network.proxy.type", 1);
|
||||
|
@ -712,7 +712,7 @@ GeckoDriver.prototype.setUpProxy = function (proxy) {
|
|||
Services.prefs.setIntPref("network.proxy.type", 0);
|
||||
}
|
||||
} else {
|
||||
throw new InvalidArgumentError("the value of 'proxy' should be an object");
|
||||
throw new InvalidArgumentError("Value of 'proxy' should be an object");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ var cookies = new Cookies(() => curContainer.frame.document, chrome);
|
|||
|
||||
Cu.import("resource://gre/modules/Log.jsm");
|
||||
var logger = Log.repository.getLogger("Marionette");
|
||||
logger.info("loaded listener.js");
|
||||
logger.debug("loaded listener.js");
|
||||
var modalHandler = function() {
|
||||
// This gets called on the system app only since it receives the mozbrowserprompt event
|
||||
sendSyncMessage("Marionette:switchedToFrame", { frameValue: null, storePrevious: true });
|
||||
|
@ -1907,7 +1907,6 @@ var _emu_cb_id = 0;
|
|||
var _emu_cbs = {};
|
||||
|
||||
function runEmulatorCmd(cmd, callback) {
|
||||
logger.info("listener runEmulatorCmd cmd=" + cmd);
|
||||
if (callback) {
|
||||
_emu_cbs[_emu_cb_id] = callback;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче