Bug 1245064 - Lint GeckoDriver#setSessionCapabilities; r=automatedtester

MozReview-Commit-ID: GXLGqjKCfVA

--HG--
extra : rebase_source : 8a58e5df7e1bf097b26597d6632bab6742a26bc2
This commit is contained in:
Andreas Tolfsen 2016-03-04 18:03:28 +00:00
parent 158557f87b
commit 176f8137f9

View File

@ -622,6 +622,7 @@ GeckoDriver.prototype.setSessionCapabilities = function(newCaps) {
case "desiredCapabilities":
to = copy(from[key], to);
break;
case "requiredCapabilities":
if (from[key].proxy) {
this.setUpProxy(from[key].proxy);
@ -631,16 +632,17 @@ GeckoDriver.prototype.setSessionCapabilities = function(newCaps) {
for (let caps in from[key]) {
if (from[key][caps] !== this.sessionCapabilities[caps]) {
errors.push(from[key][caps] + " does not equal " +
this.sessionCapabilities[caps]) ;
this.sessionCapabilities[caps]);
}
}
break;
default:
to[key] = from[key];
}
}
if (Object.keys(errors).length === 0) {
if (Object.keys(errors).length == 0) {
return to;
}