diff options
author | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-12 18:19:07 +0000 |
---|---|---|
committer | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-12 18:19:07 +0000 |
commit | 4e676aa41d39aada2731e64f2807611cfad2c785 (patch) | |
tree | 409c055c2d5c1849e707e93b97f55e5afcdaf6b1 /chrome_frame/test/net | |
parent | aedd87e5b5e0ee568309eba54b31cb8aa12cd6e6 (diff) | |
download | chromium_src-4e676aa41d39aada2731e64f2807611cfad2c785.zip chromium_src-4e676aa41d39aada2731e64f2807611cfad2c785.tar.gz chromium_src-4e676aa41d39aada2731e64f2807611cfad2c785.tar.bz2 |
First batch of context menu tests
Refactored various methods to send keyboard and mouse
input. Fixed the context menu focus issue on IE7.
Improved existing tests to make them less flaky and
added 3 new tests for context menu items.
BUG=34673
TEST=new tests added
Review URL: http://codereview.chromium.org/604014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38905 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/net')
-rw-r--r-- | chrome_frame/test/net/dialog_watchdog.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome_frame/test/net/dialog_watchdog.cc b/chrome_frame/test/net/dialog_watchdog.cc index 8fd753a..8b2323a 100644 --- a/chrome_frame/test/net/dialog_watchdog.cc +++ b/chrome_frame/test/net/dialog_watchdog.cc @@ -10,7 +10,7 @@ #include "base/scoped_comptr_win.h" #include "base/string_util.h" -#include "chrome_frame/test/chrome_frame_test_utils.h" +#include "chrome_frame/test/simulate_input.h" #include "chrome_frame/function_stub.h" namespace { @@ -54,17 +54,17 @@ bool SupplyProxyCredentials::OnDialogDetected(HWND hwnd, // We can't use SetWindowText to set the username/password, so simulate // keyboard input instead. - chrome_frame_test::ForceSetForegroundWindow(hwnd); + simulate_input::ForceSetForegroundWindow(hwnd); CHECK(SetFocusToAccessibleWindow(props.username_)); - chrome_frame_test::SendString(username_.c_str()); + simulate_input::SendString(username_.c_str()); Sleep(100); - chrome_frame_test::SendVirtualKey(VK_TAB, false); + simulate_input::SendChar(static_cast<char>(VK_TAB), false, false); Sleep(100); - chrome_frame_test::SendString(password_.c_str()); + simulate_input::SendString(password_.c_str()); Sleep(100); - chrome_frame_test::SendVirtualKey(VK_RETURN, false); + simulate_input::SendChar(static_cast<char>(VK_RETURN), false, false); return true; } |