summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_restore_uitest.cc
diff options
context:
space:
mode:
authorpatrick@chromium.org <patrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 01:39:07 +0000
committerpatrick@chromium.org <patrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-11 01:39:07 +0000
commit96fad1ae382ba77fed2d2330b2e3a9061835b24f (patch)
treeed703ff69aca802a33119877127dbc51f1533d37 /chrome/browser/tab_restore_uitest.cc
parent6f0f2425436bc4e5a0ecedd03e43f6126354e497 (diff)
downloadchromium_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.cc1
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.