Index: chrome/test/base/ui_test_utils.h |
=================================================================== |
--- chrome/test/base/ui_test_utils.h (revision 113109) |
+++ chrome/test/base/ui_test_utils.h (working copy) |
@@ -194,6 +194,13 @@ |
// Causes the specified tab to crash. Blocks until it is crashed. |
void CrashTab(TabContents* tab); |
+// Waits for the focus to change in the specified tab. |
+void WaitForFocusChange(TabContents* tab_contents); |
+ |
+// 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. |