summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_focus_uitest.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 00:56:28 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-10 00:56:28 +0000
commitcb84d644eccdc493dbfd55809cffb4c4410be12d (patch)
treef9eb62bc1ef17ffe71317dc16b47ec1b464a02a9 /chrome/browser/browser_focus_uitest.cc
parent434924590c7434c8c804bc4669d0835135d020ad (diff)
downloadchromium_src-cb84d644eccdc493dbfd55809cffb4c4410be12d.zip
chromium_src-cb84d644eccdc493dbfd55809cffb4c4410be12d.tar.gz
chromium_src-cb84d644eccdc493dbfd55809cffb4c4410be12d.tar.bz2
Make the reload button respond to middle-clicks like back/forward/home already do.
This also makes GTK and Mac reset the location bar in the correct cases with various types of clicks on back/forward. BUG=none TEST=Middle-click reload. It should reload the page in a new background tab. Review URL: http://codereview.chromium.org/2779011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_focus_uitest.cc')
-rw-r--r--chrome/browser/browser_focus_uitest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/browser_focus_uitest.cc b/chrome/browser/browser_focus_uitest.cc
index a24e1b6..93f7998 100644
--- a/chrome/browser/browser_focus_uitest.cc
+++ b/chrome/browser/browser_focus_uitest.cc
@@ -738,7 +738,7 @@ IN_PROC_BROWSER_TEST_F(BrowserFocusTest, FocusOnReload) {
ui_test_utils::RunAllPendingInMessageLoop();
- browser()->Reload();
+ browser()->Reload(CURRENT_TAB);
ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser()));
// Focus should stay on the location bar.
ASSERT_TRUE(IsViewFocused(VIEW_ID_LOCATION_BAR));
@@ -747,7 +747,7 @@ IN_PROC_BROWSER_TEST_F(BrowserFocusTest, FocusOnReload) {
ui_test_utils::NavigateToURL(browser(), server->TestServerPage(kSimplePage));
browser()->FocusLocationBar();
ASSERT_TRUE(IsViewFocused(VIEW_ID_LOCATION_BAR));
- browser()->Reload();
+ browser()->Reload(CURRENT_TAB);
ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser()));
// Focus should now be on the tab contents.
browser()->ShowDownloadsTab();
@@ -761,7 +761,7 @@ IN_PROC_BROWSER_TEST_F(BrowserFocusTest, FocusOnReloadCrashedTab) {
// Open a regular page, crash, reload.
ui_test_utils::NavigateToURL(browser(), server->TestServerPage(kSimplePage));
ui_test_utils::CrashTab(browser()->GetSelectedTabContents());
- browser()->Reload();
+ browser()->Reload(CURRENT_TAB);
ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser()));
// Focus should now be on the tab contents.
browser()->ShowDownloadsTab();