diff options
author | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 21:18:52 +0000 |
---|---|---|
committer | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 21:18:52 +0000 |
commit | e0b421291b0644eebf04660d993995e638251bf0 (patch) | |
tree | 8eb9ab232ab852e38625f3c79032f3e4209b5806 /chrome_frame/test/simulate_input.h | |
parent | 66a7e419553da5367d5f143fd0a975b25e1b1726 (diff) | |
download | chromium_src-e0b421291b0644eebf04660d993995e638251bf0.zip chromium_src-e0b421291b0644eebf04660d993995e638251bf0.tar.gz chromium_src-e0b421291b0644eebf04660d993995e638251bf0.tar.bz2 |
More context menu tests
Refactored code to monitor windows so that it could be used with
our mock to watch for dialogs and chrome windows. Added new tests
for 'Page Info', 'Dev Tools' and 'Save As' menu options.
BUG=34673
TESTS=newly added
Review URL: http://codereview.chromium.org/667005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/simulate_input.h')
-rw-r--r-- | chrome_frame/test/simulate_input.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome_frame/test/simulate_input.h b/chrome_frame/test/simulate_input.h index 972269c..e739e8f 100644 --- a/chrome_frame/test/simulate_input.h +++ b/chrome_frame/test/simulate_input.h @@ -35,6 +35,7 @@ enum MouseButton { LEFT, RIGHT, MIDDLE, X }; void SendMouseClick(HWND window, int x, int y, MouseButton button); // Translates a single char to a virtual key and calls SendVirtualKey. +void SendScanCode(short scan_code, bool shift, bool control, bool alt); void SendChar(char c, bool control, bool alt); void SendChar(wchar_t c, bool control, bool alt); @@ -49,7 +50,7 @@ void SendString(const char_type* s) { while (*s) { char_type ch = *s; SendChar(ch, false, false); - Sleep(100); + Sleep(10); s++; } } |