Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3335)

Unified Diff: chrome/test/chromedriver/session_commands.cc

Issue 12675002: [chromedriver] Implement command: executeAsyncScript and setScriptTimeout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address +5000 timeout problem. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/session_commands.h ('k') | chrome/test/chromedriver/status.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/session_commands.cc
diff --git a/chrome/test/chromedriver/session_commands.cc b/chrome/test/chromedriver/session_commands.cc
index aa0cf12de1ccb5ab8fea15b5b8a663b03e79287d..f930f67f710ed2259cfd9966eb7debe9dfdd2a7c 100644
--- a/chrome/test/chromedriver/session_commands.cc
+++ b/chrome/test/chromedriver/session_commands.cc
@@ -184,6 +184,17 @@ Status ExecuteSetTimeout(
return Status(kOk);
}
+Status ExecuteSetScriptTimeout(
+ Session* session,
+ const base::DictionaryValue& params,
+ scoped_ptr<base::Value>* value) {
+ int ms;
+ if (!params.GetInteger("ms", &ms) || ms < 0)
+ return Status(kUnknownError, "'ms' must be a non-negative integer");
+ session->script_timeout = ms;
+ return Status(kOk);
+}
+
Status ExecuteGetAlert(
Session* session,
const base::DictionaryValue& params,
« no previous file with comments | « chrome/test/chromedriver/session_commands.h ('k') | chrome/test/chromedriver/status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698