summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-23 02:21:49 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-23 02:21:49 +0000
commitbc16a2588d0c88c8476c1896328fc0e3a917a719 (patch)
treeb04c0bc6e6bdaefedc6b4acce2f4083db524207c
parentd873f19c60705cb460a4fc4b55a315136d5ad5c8 (diff)
downloadchromium_src-bc16a2588d0c88c8476c1896328fc0e3a917a719.zip
chromium_src-bc16a2588d0c88c8476c1896328fc0e3a917a719.tar.gz
chromium_src-bc16a2588d0c88c8476c1896328fc0e3a917a719.tar.bz2
fix BrowserNavigatorTest.NavigateFromDefaultToBookmarksInSameTab
it flakes because chrome://bookmarks/ redirects to chrome://bookmarks/#1 BUG=none Review URL: https://chromiumcodereview.appspot.com/12042035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178210 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/browser_navigator_browsertest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/ui/browser_navigator_browsertest.cc b/chrome/browser/ui/browser_navigator_browsertest.cc
index 97a1af2..3203cd8 100644
--- a/chrome/browser/ui/browser_navigator_browsertest.cc
+++ b/chrome/browser/ui/browser_navigator_browsertest.cc
@@ -1204,8 +1204,10 @@ IN_PROC_BROWSER_TEST_F(BrowserNavigatorTest,
observer.Wait();
}
EXPECT_EQ(1, browser()->tab_strip_model()->count());
- EXPECT_EQ(GURL(chrome::kChromeUIBookmarksURL),
- browser()->tab_strip_model()->GetActiveWebContents()->GetURL());
+ EXPECT_TRUE(StartsWithASCII(
+ browser()->tab_strip_model()->GetActiveWebContents()->GetURL().spec(),
+ chrome::kChromeUIBookmarksURL,
+ true));
}
IN_PROC_BROWSER_TEST_F(BrowserNavigatorTest,