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

Unified Diff: chrome/browser/sidebar/sidebar_browsertest.cc

Issue 7489019: Fix up various browser tests not to use WaitForNavigation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Use the single WNO ctor. Created 9 years, 5 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
Index: chrome/browser/sidebar/sidebar_browsertest.cc
diff --git a/chrome/browser/sidebar/sidebar_browsertest.cc b/chrome/browser/sidebar/sidebar_browsertest.cc
index 049857b0fade599c422d307ea61fe0d777d8755d..5f9835b79a09f6ed673b9c6e4364aa591511f050 100644
--- a/chrome/browser/sidebar/sidebar_browsertest.cc
+++ b/chrome/browser/sidebar/sidebar_browsertest.cc
@@ -72,13 +72,14 @@ class SidebarTest : public ExtensionBrowserTest {
SidebarManager* sidebar_manager = SidebarManager::GetInstance();
+ ui_test_utils::WindowedNotificationObserver observer(tab->controller());
Paweł Hajdan Jr. 2011/08/04 17:56:48 Looks like you may need to update this call site t
Greg Billock 2011/08/11 22:57:45 Yeah, a try caught that, too. It's changed and upl
sidebar_manager->NavigateSidebar(tab, content_id_, url);
+ observer.Wait();
SidebarContainer* sidebar_container =
Paweł Hajdan Jr. 2011/08/04 17:56:48 nit: Looks like this could be removed now, below t
Greg Billock 2011/08/11 22:57:45 Done.
sidebar_manager->GetSidebarContainerFor(tab, content_id_);
TabContents* client_contents = sidebar_container->sidebar_contents();
- ui_test_utils::WaitForNavigation(&client_contents->controller());
}
void ShowSidebar(TabContents* tab) {
@@ -199,4 +200,3 @@ IN_PROC_BROWSER_TEST_F(SidebarTest, SidebarNavigate) {
}
} // namespace
-

Powered by Google App Engine
This is Rietveld 408576698