Bug 1326534 - Lint a few statements in driver.js; r?automatedtester
No functional changes.
MozReview-Commit-ID: FP9p9tPr8Ce
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -183,17 +183,17 @@ this.GeckoDriver = function (appName, se
Object.defineProperty(GeckoDriver.prototype, "a11yChecks", {
get: function () { return this.sessionCapabilities["moz:accessibilityChecks"]; }
});
GeckoDriver.prototype.QueryInterface = XPCOMUtils.generateQI([
Ci.nsIMessageListener,
Ci.nsIObserver,
- Ci.nsISupportsWeakReference
+ Ci.nsISupportsWeakReference,
]);
/**
* Switches to the global ChromeMessageBroadcaster, potentially replacing
* a frame-specific ChromeMessageSender. Has no effect if the global
* ChromeMessageBroadcaster is already in use. If this replaces a
* frame-specific ChromeMessageSender, it removes the message listeners
* from that sender, and then puts the corresponding frame script "to
@@ -365,18 +365,19 @@ GeckoDriver.prototype.whenBrowserStarted
// so send the ack here. Otherwise, make a note of how many child scripts
// will be loaded so we known when it's safe to return.
// Child managers may not have child scripts yet (e.g. socialapi), only
// count child managers that have children, but only count the top level
// children as they are the ones that we expect a response from.
if (mm.childCount !== 0) {
this.curBrowser.frameRegsPending = 0;
for (let i = 0; i < mm.childCount; i++) {
- if (mm.getChildAt(i).childCount !== 0)
+ if (mm.getChildAt(i).childCount !== 0) {
this.curBrowser.frameRegsPending += 1;
+ }
}
}
}
if (!Preferences.get(CONTENT_LISTENER_PREF) || !isNewSession) {
// load listener into the remote frame
// and any applicable new frames
// opened after this call
@@ -508,18 +509,19 @@ GeckoDriver.prototype.listeningPromise =
};
this.mm.addMessageListener(li, cb);
});
};
/** Create a new session. */
GeckoDriver.prototype.newSession = function*(cmd, resp) {
if (this.sessionId) {
- throw new SessionNotCreatedError("Maximum number of active sessions.")
+ throw new SessionNotCreatedError("Maximum number of active sessions");
}
+
this.sessionId = cmd.parameters.sessionId ||
cmd.parameters.session_id ||
element.generateUUID();
this.newSessionCommandId = cmd.id;
this.setSessionCapabilities(cmd.parameters.capabilities);
this.scriptTimeout = 10000;