mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
Bug 1245064 - Lint GeckoDriver#setSessionCapabilities; r=automatedtester
MozReview-Commit-ID: GXLGqjKCfVA --HG-- extra : rebase_source : 8a58e5df7e1bf097b26597d6632bab6742a26bc2
This commit is contained in:
parent
158557f87b
commit
176f8137f9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user