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

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

Issue 7631012: Re-enable accidentally disabled DragPanels test on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed comment about linux desktop. Created 9 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
« 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/command_line.h" 5 #include "base/command_line.h"
6 #include "chrome/browser/extensions/extension_service.h" 6 #include "chrome/browser/extensions/extension_service.h"
7 #include "chrome/browser/prefs/pref_service.h" 7 #include "chrome/browser/prefs/pref_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_list.h" 10 #include "chrome/browser/ui/browser_list.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 #ifdef OS_MACOSX 297 #ifdef OS_MACOSX
298 #define MAYBE_CreatePanelOnOverflow DISABLED_CreatePanelOnOverflow 298 #define MAYBE_CreatePanelOnOverflow DISABLED_CreatePanelOnOverflow
299 #else 299 #else
300 #define MAYBE_CreatePanelOnOverflow CreatePanelOnOverflow 300 #define MAYBE_CreatePanelOnOverflow CreatePanelOnOverflow
301 #endif 301 #endif
302 302
303 IN_PROC_BROWSER_TEST_F(PanelBrowserTest, MAYBE_CreatePanelOnOverflow) { 303 IN_PROC_BROWSER_TEST_F(PanelBrowserTest, MAYBE_CreatePanelOnOverflow) {
304 TestCreatePanelOnOverflow(); 304 TestCreatePanelOnOverflow();
305 } 305 }
306 306
307 #if defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(TOOLKIT_VIEWS) 307 #if defined(TOOLKIT_GTK) || defined(OS_WIN)
308 #define MAYBE_DragPanels DragPanels
309 #else
308 #define MAYBE_DragPanels DISABLED_DragPanels 310 #define MAYBE_DragPanels DISABLED_DragPanels
309 #else
310 #define MAYBE_DragPanels DragPanels
311 #endif 311 #endif
312 312
313 IN_PROC_BROWSER_TEST_F(PanelBrowserTest, MAYBE_DragPanels) { 313 IN_PROC_BROWSER_TEST_F(PanelBrowserTest, MAYBE_DragPanels) {
314 std::vector<Panel*> panels; 314 std::vector<Panel*> panels;
315 panels.push_back(CreatePanel("PanelTest0", gfx::Rect())); 315 panels.push_back(CreatePanel("PanelTest0", gfx::Rect()));
316 316
317 int small_delta = 5; 317 int small_delta = 5;
318 int big_delta = panels[0]->GetRestoredBounds().width() * 0.5 + 5; 318 int big_delta = panels[0]->GetRestoredBounds().width() * 0.5 + 5;
319 319
320 // Setup test data. 320 // Setup test data.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 EXPECT_EQ(1, tabbed_browser->tab_count()); 501 EXPECT_EQ(1, tabbed_browser->tab_count());
502 ASSERT_TRUE(tabbed_browser->window()->IsDownloadShelfVisible()); 502 ASSERT_TRUE(tabbed_browser->window()->IsDownloadShelfVisible());
503 tabbed_browser->CloseWindow(); 503 tabbed_browser->CloseWindow();
504 #endif 504 #endif
505 505
506 EXPECT_EQ(1, panel_browser->tab_count()); 506 EXPECT_EQ(1, panel_browser->tab_count());
507 ASSERT_FALSE(panel_browser->window()->IsDownloadShelfVisible()); 507 ASSERT_FALSE(panel_browser->window()->IsDownloadShelfVisible());
508 508
509 panel_browser->CloseWindow(); 509 panel_browser->CloseWindow();
510 } 510 }
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