Bug 1302707 - Remove GeckoDriver#setScriptTimeout; r?automatedtester
MozReview-Commit-ID: 3GVLpjd4LDP
--- a/testing/marionette/driver.js
+++ b/testing/marionette/driver.js
@@ -933,30 +933,16 @@ GeckoDriver.prototype.executeJSScript =
case Context.CONTENT:
resp.body.value = yield this.listener.executeSimpleTest(script, args, scriptTimeout, opts);
break;
}
};
/**
- * Set the timeout for asynchronous script execution.
- *
- * @param {number} ms
- * Time in milliseconds.
- */
-GeckoDriver.prototype.setScriptTimeout = function(cmd, resp) {
- let ms = parseInt(cmd.parameters.ms);
- if (isNaN(ms)) {
- throw new WebDriverError("Not a Number");
- }
- this.scriptTimeout = ms;
-};
-
-/**
* Navigate to given URL.
*
* Navigates the current browsing context to the given URL and waits for
* the document to load or the session's page timeout duration to elapse
* before returning.
*
* The command will return with a failure if there is an error loading
* the document or the URL is blocked. This can occur if it fails to
@@ -2706,17 +2692,16 @@ GeckoDriver.prototype.commands = {
"sayHello": GeckoDriver.prototype.sayHello,
"newSession": GeckoDriver.prototype.newSession,
"getSessionCapabilities": GeckoDriver.prototype.getSessionCapabilities,
"log": GeckoDriver.prototype.log,
"getLogs": GeckoDriver.prototype.getLogs,
"setContext": GeckoDriver.prototype.setContext,
"getContext": GeckoDriver.prototype.getContext,
"executeScript": GeckoDriver.prototype.executeScript,
- "setScriptTimeout": GeckoDriver.prototype.setScriptTimeout,
"timeouts": GeckoDriver.prototype.timeouts,
"singleTap": GeckoDriver.prototype.singleTap,
"actionChain": GeckoDriver.prototype.actionChain,
"multiAction": GeckoDriver.prototype.multiAction,
"executeAsyncScript": GeckoDriver.prototype.executeAsyncScript,
"executeJSScript": GeckoDriver.prototype.executeJSScript,
"setSearchTimeout": GeckoDriver.prototype.setSearchTimeout,
"findElement": GeckoDriver.prototype.findElement,