diff options
author | suzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 02:52:06 +0000 |
---|---|---|
committer | suzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 02:52:06 +0000 |
commit | 21abcc74837a6cb9537a8026a1b12efc9da402f0 (patch) | |
tree | 9860885689c7af40e05a14513b09a98dc8642542 /chrome/test/ui_test_utils.h | |
parent | 44c8966e5995e827d0d0b3fd2d4fcee0f56bbdff (diff) | |
download | chromium_src-21abcc74837a6cb9537a8026a1b12efc9da402f0.zip chromium_src-21abcc74837a6cb9537a8026a1b12efc9da402f0.tar.gz chromium_src-21abcc74837a6cb9537a8026a1b12efc9da402f0.tar.bz2 |
Implements tests for testing browser's overall key events handling behavior.
This CL implements some basic tests for testing browser's overall key events handling behavior. This CL depends on http://codereview.chromium.org/235039 and http://codereview.chromium.org/195062. Currently, only Linux and Windows are supported.
The tests assume US keyboard layout is used and no IME is activated. We still need to investigate how to write tests that involving different keyboard layout and input methods.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/268035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29866 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui_test_utils.h')
-rw-r--r-- | chrome/test/ui_test_utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/test/ui_test_utils.h b/chrome/test/ui_test_utils.h index 59f32b1b..ae0d44e 100644 --- a/chrome/test/ui_test_utils.h +++ b/chrome/test/ui_test_utils.h @@ -9,6 +9,7 @@ #include "base/basictypes.h" #include "base/string16.h" +#include "chrome/browser/view_ids.h" #include "chrome/common/notification_observer.h" #include "chrome/common/notification_type.h" @@ -122,6 +123,12 @@ int FindInPage(TabContents* tab, bool case_sensitive, int* ordinal); +// Returns true if the View is focused. +bool IsViewFocused(const Browser* browser, ViewID vid); + +// Simulates a mouse click on a View in the browser. +void ClickOnView(const Browser* browser, ViewID vid); + // Register |observer| for the given |type| and run the message loop until // either the observer posts a quit task or we timeout. void RegisterAndWait(NotificationType::Type type, |