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

Unified Diff: chrome/test/chromedriver/command_executor_impl.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/chromedriver.py ('k') | chrome/test/chromedriver/js/execute_async_script.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/command_executor_impl.cc
diff --git a/chrome/test/chromedriver/command_executor_impl.cc b/chrome/test/chromedriver/command_executor_impl.cc
index bf7927a6c405eeeac4c2a16020530661cae597d7..dc3ade945aaf733cadc9c4d19a171e12dea5922f 100644
--- a/chrome/test/chromedriver/command_executor_impl.cc
+++ b/chrome/test/chromedriver/command_executor_impl.cc
@@ -102,6 +102,8 @@ void CommandExecutorImpl::Init() {
window_command_map[CommandNames::kGet] = base::Bind(&ExecuteGet);
window_command_map[CommandNames::kExecuteScript] =
base::Bind(&ExecuteExecuteScript);
+ window_command_map[CommandNames::kExecuteAsyncScript] =
+ base::Bind(&ExecuteExecuteAsyncScript);
window_command_map[CommandNames::kSwitchToFrame] =
base::Bind(&ExecuteSwitchToFrame);
window_command_map[CommandNames::kGetTitle] =
@@ -192,6 +194,8 @@ void CommandExecutorImpl::Init() {
base::Bind(&ExecuteSwitchToWindow);
session_command_map[CommandNames::kSetTimeout] =
base::Bind(&ExecuteSetTimeout);
+ session_command_map[CommandNames::kSetScriptTimeout] =
+ base::Bind(&ExecuteSetScriptTimeout);
session_command_map[CommandNames::kGetAlert] =
base::Bind(&ExecuteGetAlert);
session_command_map[CommandNames::kGetAlertText] =
« no previous file with comments | « chrome/test/chromedriver/chromedriver.py ('k') | chrome/test/chromedriver/js/execute_async_script.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698