Index: chrome/browser/apps/app_browsertest.cc |
diff --git a/chrome/browser/apps/app_browsertest.cc b/chrome/browser/apps/app_browsertest.cc |
index 7300ae4ace0c8a077c36291af02d16b7045ecc1f..f513a78c69cd9e6dd53a369702e8bda787b8b4e5 100644 |
--- a/chrome/browser/apps/app_browsertest.cc |
+++ b/chrome/browser/apps/app_browsertest.cc |
@@ -41,6 +41,7 @@ |
#include "content/public/browser/host_zoom_map.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/render_widget_host_view.h" |
+#include "content/public/test/browser_test_utils.h" |
#include "content/public/test/test_utils.h" |
#include "extensions/browser/app_window/app_window.h" |
#include "extensions/browser/app_window/app_window_registry.h" |
@@ -451,8 +452,10 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
message_; |
observer.Wait(); |
ASSERT_EQ(kExpectedNumberOfTabs, observer.tabs().size()); |
+ content::WaitForLoadStop(observer.tabs()[kExpectedNumberOfTabs - 1]); |
EXPECT_EQ(GURL(kChromiumURL), |
observer.tabs()[kExpectedNumberOfTabs - 1]->GetURL()); |
+ content::WaitForLoadStop(observer.tabs()[kExpectedNumberOfTabs - 2]); |
EXPECT_EQ(GURL(kChromiumURL), |
observer.tabs()[kExpectedNumberOfTabs - 2]->GetURL()); |
} |