diff options
author | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 03:18:03 +0000 |
---|---|---|
committer | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 03:18:03 +0000 |
commit | d7c310ebf1782712aa8617ce036ff713d8d596ee (patch) | |
tree | 1b144eec3ed01bfb39cf2448b3e4fe48607c7e2d /chrome/browser/browser_uitest.cc | |
parent | b652c92d5b2b5082be9f195dc920ac0191ea2eaa (diff) | |
download | chromium_src-d7c310ebf1782712aa8617ce036ff713d8d596ee.zip chromium_src-d7c310ebf1782712aa8617ce036ff713d8d596ee.tar.gz chromium_src-d7c310ebf1782712aa8617ce036ff713d8d596ee.tar.bz2 |
Issue 2509: Duplicate tab should not create a new window.
Review URL: http://codereview.chromium.org/3147
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2474 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_uitest.cc')
-rw-r--r-- | chrome/browser/browser_uitest.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/browser_uitest.cc b/chrome/browser/browser_uitest.cc index 6fd93cf..842b7d8 100644 --- a/chrome/browser/browser_uitest.cc +++ b/chrome/browser/browser_uitest.cc @@ -251,13 +251,12 @@ TEST_F(BrowserTest, DuplicateTab) { // Duplicate the tab. ASSERT_TRUE(browser_proxy->ApplyAccelerator(IDC_DUPLICATE)); - // The duplicated tab ends up in a new window. + // The duplicated tab should not end up in a new window. int window_count; ASSERT_TRUE(automation()->GetBrowserWindowCount(&window_count)); - ASSERT_TRUE(window_count > initial_window_count); + ASSERT_TRUE(window_count == initial_window_count); - browser_proxy.reset(automation()->GetBrowserWindow(1)); - tab_proxy.reset(browser_proxy->GetTab(0)); + tab_proxy.reset(browser_proxy->GetTab(1)); ASSERT_TRUE(tab_proxy->WaitForTabToBeRestored(kWaitForActionMsec)); |