diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-02 19:05:19 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-02 19:05:19 +0000 |
commit | 3a31d4855b91065ffd87d7de3f4db0ef92c94ec7 (patch) | |
tree | a6e7f7e5b57cd1cf9d8741260e81882142a74ff4 /chrome/test/ui_test_utils.h | |
parent | 8062678b6b02902058d2a688099a650783fc5556 (diff) | |
download | chromium_src-3a31d4855b91065ffd87d7de3f4db0ef92c94ec7.zip chromium_src-3a31d4855b91065ffd87d7de3f4db0ef92c94ec7.tar.gz chromium_src-3a31d4855b91065ffd87d7de3f4db0ef92c94ec7.tar.bz2 |
The focus would only be restored properly the first time the
find-in-bar box was closed.
Also wrote an interactive ui test and took the opportunity to convert the existing find-in-bar interactive ui test to be a browser test.
BUG=23599
TEST=See bug.
Review URL: http://codereview.chromium.org/251064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27875 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui_test_utils.h')
-rw-r--r-- | chrome/test/ui_test_utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/test/ui_test_utils.h b/chrome/test/ui_test_utils.h index ec7d6a5..2fff009 100644 --- a/chrome/test/ui_test_utils.h +++ b/chrome/test/ui_test_utils.h @@ -111,6 +111,15 @@ void WaitForFocusChange(RenderViewHost* rvh); // Waits for the renderer to return focus to the browser (happens through tab // traversal). void WaitForFocusInBrowser(Browser* browser); + +// Performs a find in the page of the specified tab. Returns the number of +// matches found. |ordinal| is an optional parameter which is set to the index +// of the current match. +int FindInPage(TabContents* tab, + const string16& search_string, + bool forward, + bool case_sensitive, + int* ordinal); } #endif // CHROME_TEST_UI_TEST_UTILS_H_ |