зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1326534 - Lint a few statements in driver.js; r=automatedtester
No functional changes. MozReview-Commit-ID: FP9p9tPr8Ce --HG-- extra : rebase_source : fb3e43203b417b119df2c0975c15aa95c1b16408
This commit is contained in:
Родитель
52426eb1ab
Коммит
9a4394f2c5
|
@ -188,7 +188,7 @@ Object.defineProperty(GeckoDriver.prototype, "a11yChecks", {
|
|||
GeckoDriver.prototype.QueryInterface = XPCOMUtils.generateQI([
|
||||
Ci.nsIMessageListener,
|
||||
Ci.nsIObserver,
|
||||
Ci.nsISupportsWeakReference
|
||||
Ci.nsISupportsWeakReference,
|
||||
]);
|
||||
|
||||
/**
|
||||
|
@ -370,8 +370,9 @@ GeckoDriver.prototype.whenBrowserStarted = function (win, isNewSession) {
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -513,8 +514,9 @@ GeckoDriver.prototype.listeningPromise = function() {
|
|||
/** 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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче