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

Unified Diff: chrome/browser/ui/search/instant_test_utils.cc

Issue 302433013: Instant interactive_ui_tests should wait for main frame load. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only change first wait to wait for frame load Created 6 years, 7 months 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 | « chrome/browser/ui/search/instant_test_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_test_utils.cc
diff --git a/chrome/browser/ui/search/instant_test_utils.cc b/chrome/browser/ui/search/instant_test_utils.cc
index 12aded316de0df22d4de0a691cc38c2569022165..a17425d906849cb54484e6ba042a8a99c17b86a2 100644
--- a/chrome/browser/ui/search/instant_test_utils.cc
+++ b/chrome/browser/ui/search/instant_test_utils.cc
@@ -118,6 +118,14 @@ void InstantTestBase::PressEnterAndWaitForNavigation() {
nav_observer.Wait();
}
+void InstantTestBase::PressEnterAndWaitForFrameLoad() {
+ content::WindowedNotificationObserver nav_observer(
+ content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME,
+ content::NotificationService::AllSources());
+ browser_->window()->GetLocationBar()->AcceptInput();
+ nav_observer.Wait();
+}
+
bool InstantTestBase::GetBoolFromJS(content::WebContents* contents,
const std::string& script,
bool* result) {
« no previous file with comments | « chrome/browser/ui/search/instant_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698