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

Unified Diff: chrome_frame/test/chrome_frame_test_utils.cc

Issue 430002: Unit test for back/forward for url fragments. Improvements in the testing... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « no previous file | chrome_frame/test/chrome_frame_unittests.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/chrome_frame_test_utils.cc
===================================================================
--- chrome_frame/test/chrome_frame_test_utils.cc (revision 32869)
+++ chrome_frame/test/chrome_frame_test_utils.cc (working copy)
@@ -472,7 +472,7 @@
}
void SendInputToWindow(HWND window, const std::string& input_string) {
- SetKeyboardFocusToWindow(window, 100, 100);
+ const unsigned long kIntervalBetweenInput = 100;
for (size_t index = 0; index < input_string.length(); index++) {
bool is_upper_case = isupper(input_string[index]);
@@ -481,18 +481,20 @@
input.ki.wVk = VK_SHIFT;
input.ki.dwFlags = 0;
SendInput(1, &input, sizeof(input));
- Sleep(200);
+ Sleep(kIntervalBetweenInput);
}
// The WM_KEYDOWN and WM_KEYUP messages for characters always contain
// the uppercase character codes.
SendVirtualKey(toupper(input_string[index]), false);
+ Sleep(kIntervalBetweenInput);
if (is_upper_case) {
INPUT input = { INPUT_KEYBOARD };
input.ki.wVk = VK_SHIFT;
input.ki.dwFlags = KEYEVENTF_KEYUP;
SendInput(1, &input, sizeof(input));
+ Sleep(kIntervalBetweenInput);
}
}
}
« no previous file with comments | « no previous file | chrome_frame/test/chrome_frame_unittests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698