diff options
author | patrick@chromium.org <patrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 01:39:07 +0000 |
---|---|---|
committer | patrick@chromium.org <patrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 01:39:07 +0000 |
commit | 96fad1ae382ba77fed2d2330b2e3a9061835b24f (patch) | |
tree | ed703ff69aca802a33119877127dbc51f1533d37 /chrome/browser/tab_restore_uitest.cc | |
parent | 6f0f2425436bc4e5a0ecedd03e43f6126354e497 (diff) | |
download | chromium_src-96fad1ae382ba77fed2d2330b2e3a9061835b24f.zip chromium_src-96fad1ae382ba77fed2d2330b2e3a9061835b24f.tar.gz chromium_src-96fad1ae382ba77fed2d2330b2e3a9061835b24f.tar.bz2 |
Fix a potential infinite loop in TabRestoreUITest.RestoreToDifferentWindow.
The variable tab_count is never changed inside the while loop.
Review URL: http://codereview.chromium.org/21200
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_restore_uitest.cc')
-rw-r--r-- | chrome/browser/tab_restore_uitest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/tab_restore_uitest.cc b/chrome/browser/tab_restore_uitest.cc index e3ef0ef..88bf499 100644 --- a/chrome/browser/tab_restore_uitest.cc +++ b/chrome/browser/tab_restore_uitest.cc @@ -97,6 +97,7 @@ TEST_F(TabRestoreUITest, RestoreToDifferentWindow) { while (tab_count > 1) { scoped_ptr<TabProxy> tab_to_close(browser_proxy->GetTab(0)); tab_to_close->Close(true); + ASSERT_TRUE(browser_proxy->GetTabCount(&tab_count)); } // Navigate to url1 then url2. |