Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1039)

Side by Side Diff: chrome/browser/browser_uitest.cc

Issue 28190: Disabling ThirtyFourTabs test. (Closed)
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/string_util.h" 6 #include "base/string_util.h"
7 #include "base/sys_info.h" 7 #include "base/sys_info.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/app/chrome_dll_resource.h" 9 #include "chrome/app/chrome_dll_resource.h"
10 #include "chrome/common/chrome_constants.h" 10 #include "chrome/common/chrome_constants.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 const std::wstring test_title(L"Title Of Awesomeness"); 83 const std::wstring test_title(L"Title Of Awesomeness");
84 EXPECT_EQ(WindowCaptionFromPageTitle(test_title), GetWindowTitle()); 84 EXPECT_EQ(WindowCaptionFromPageTitle(test_title), GetWindowTitle());
85 EXPECT_EQ(test_title, GetActiveTabTitle()); 85 EXPECT_EQ(test_title, GetActiveTabTitle());
86 } 86 }
87 87
88 // Create 34 tabs and verify that a lot of processes have been created. The 88 // Create 34 tabs and verify that a lot of processes have been created. The
89 // exact number of processes depends on the amount of memory. Previously we 89 // exact number of processes depends on the amount of memory. Previously we
90 // had a hard limit of 31 processes and this test is mainly directed at 90 // had a hard limit of 31 processes and this test is mainly directed at
91 // verifying that we don't crash when we pass this limit. 91 // verifying that we don't crash when we pass this limit.
92 TEST_F(BrowserTest, ThirtyFourTabs) { 92 // Disabling this test http://code.google.com/p/chromium/issues/detail?id=8119
93 TEST_F(BrowserTest, DISABLED_ThirtyFourTabs) {
93 std::wstring test_file = test_data_directory_; 94 std::wstring test_file = test_data_directory_;
94 file_util::AppendToPath(&test_file, L"title2.html"); 95 file_util::AppendToPath(&test_file, L"title2.html");
95 GURL url(net::FilePathToFileURL(test_file)); 96 GURL url(net::FilePathToFileURL(test_file));
96 scoped_ptr<BrowserProxy> window(automation()->GetBrowserWindow(0)); 97 scoped_ptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
97 // There is one initial tab. 98 // There is one initial tab.
98 for (int ix = 0; ix != 33; ++ix) { 99 for (int ix = 0; ix != 33; ++ix) {
99 EXPECT_TRUE(window->AppendTab(url)); 100 EXPECT_TRUE(window->AppendTab(url));
100 } 101 }
101 int tab_count = 0; 102 int tab_count = 0;
102 EXPECT_TRUE(window->GetTabCount(&tab_count)); 103 EXPECT_TRUE(window->GetTabCount(&tab_count));
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 std::wstring title = GetActiveTabTitle(); 275 std::wstring title = GetActiveTabTitle();
275 if (title == L"PASSED") { 276 if (title == L"PASSED") {
276 // Success, bail out. 277 // Success, bail out.
277 break; 278 break;
278 } 279 }
279 } 280 }
280 281
281 if (i == 10) 282 if (i == 10)
282 FAIL() << "failed to get error page title"; 283 FAIL() << "failed to get error page title";
283 } 284 }
284
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698