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

Side by Side Diff: chrome/browser/ui/panels/docked_panel_browsertest.cc

Issue 417453002: Disable all the tests that are flaking more than 5% on Linux builders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "chrome/browser/chrome_notification_types.h" 6 #include "chrome/browser/chrome_notification_types.h"
7 #include "chrome/browser/ui/panels/base_panel_browser_test.h" 7 #include "chrome/browser/ui/panels/base_panel_browser_test.h"
8 #include "chrome/browser/ui/panels/docked_panel_collection.h" 8 #include "chrome/browser/ui/panels/docked_panel_collection.h"
9 #include "chrome/browser/ui/panels/panel.h" 9 #include "chrome/browser/ui/panels/panel.h"
10 #include "chrome/browser/ui/panels/panel_manager.h" 10 #include "chrome/browser/ui/panels/panel_manager.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 EXPECT_LT(panel1->GetBounds().width(), panel1->GetRestoredBounds().width()); 84 EXPECT_LT(panel1->GetBounds().width(), panel1->GetRestoredBounds().width());
85 EXPECT_LT(panel3->GetBounds().width(), panel3->GetRestoredBounds().width()); 85 EXPECT_LT(panel3->GetBounds().width(), panel3->GetRestoredBounds().width());
86 EXPECT_LT(panel4->GetBounds().width(), panel4->GetRestoredBounds().width()); 86 EXPECT_LT(panel4->GetBounds().width(), panel4->GetRestoredBounds().width());
87 EXPECT_LT(panel5->GetBounds().width(), panel5->GetRestoredBounds().width()); 87 EXPECT_LT(panel5->GetBounds().width(), panel5->GetRestoredBounds().width());
88 EXPECT_LT(panel6->GetBounds().width(), panel6->GetRestoredBounds().width()); 88 EXPECT_LT(panel6->GetBounds().width(), panel6->GetRestoredBounds().width());
89 EXPECT_LT(panel7->GetBounds().width(), panel7->GetRestoredBounds().width()); 89 EXPECT_LT(panel7->GetBounds().width(), panel7->GetRestoredBounds().width());
90 90
91 panel_manager->CloseAll(); 91 panel_manager->CloseAll();
92 } 92 }
93 93
94 IN_PROC_BROWSER_TEST_F(DockedPanelBrowserTest, SqueezeAndThenSomeMore) { 94 #if defined(OS_LINUX)
95 // http://crbug.com/396484
96 #define MAYBE_SqueezeAndThenSomeMore DISABLED_SqueezeAndThenSomeMore
97 #else
98 #define MAYBE_SqueezeAndThenSomeMore SqueezeAndThenSomeMore
99 #endif
100 IN_PROC_BROWSER_TEST_F(DockedPanelBrowserTest, MAYBE_SqueezeAndThenSomeMore) {
95 PanelManager* panel_manager = PanelManager::GetInstance(); 101 PanelManager* panel_manager = PanelManager::GetInstance();
96 DockedPanelCollection* docked_collection = panel_manager->docked_collection(); 102 DockedPanelCollection* docked_collection = panel_manager->docked_collection();
97 103
98 // Create enough docked panels to get into squeezing. 104 // Create enough docked panels to get into squeezing.
99 Panel* panel1 = CreateInactiveDockedPanel("1", gfx::Rect(0, 0, 200, 100)); 105 Panel* panel1 = CreateInactiveDockedPanel("1", gfx::Rect(0, 0, 200, 100));
100 Panel* panel2 = CreateInactiveDockedPanel("2", gfx::Rect(0, 0, 200, 100)); 106 Panel* panel2 = CreateInactiveDockedPanel("2", gfx::Rect(0, 0, 200, 100));
101 Panel* panel3 = CreateInactiveDockedPanel("3", gfx::Rect(0, 0, 200, 100)); 107 Panel* panel3 = CreateInactiveDockedPanel("3", gfx::Rect(0, 0, 200, 100));
102 Panel* panel4 = CreateInactiveDockedPanel("4", gfx::Rect(0, 0, 200, 100)); 108 Panel* panel4 = CreateInactiveDockedPanel("4", gfx::Rect(0, 0, 200, 100));
103 Panel* panel5 = CreateInactiveDockedPanel("5", gfx::Rect(0, 0, 200, 100)); 109 Panel* panel5 = CreateInactiveDockedPanel("5", gfx::Rect(0, 0, 200, 100));
104 Panel* panel6 = CreateInactiveDockedPanel("6", gfx::Rect(0, 0, 200, 100)); 110 Panel* panel6 = CreateInactiveDockedPanel("6", gfx::Rect(0, 0, 200, 100));
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 CloseWindowAndWait(panel7); 264 CloseWindowAndWait(panel7);
259 signal2.Wait(); 265 signal2.Wait();
260 266
261 // We should not have squeezing any more; all panels should be at full width. 267 // We should not have squeezing any more; all panels should be at full width.
262 EXPECT_EQ(panel1->GetBounds().width(), panel1->GetRestoredBounds().width()); 268 EXPECT_EQ(panel1->GetBounds().width(), panel1->GetRestoredBounds().width());
263 EXPECT_EQ(panel4->GetBounds().width(), panel4->GetRestoredBounds().width()); 269 EXPECT_EQ(panel4->GetBounds().width(), panel4->GetRestoredBounds().width());
264 EXPECT_EQ(panel6->GetBounds().width(), panel6->GetRestoredBounds().width()); 270 EXPECT_EQ(panel6->GetBounds().width(), panel6->GetRestoredBounds().width());
265 271
266 panel_manager->CloseAll(); 272 panel_manager->CloseAll();
267 } 273 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/global_error/global_error_service_browsertest.cc ('k') | chrome/test/ppapi/ppapi_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698