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

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

Issue 8539025: Fix Panel to always detect when a tab is added. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test cleanup and fix Mac test hang Created 9 years, 1 month 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) 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/i18n/time_formatting.h" 5 #include "base/i18n/time_formatting.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "chrome/browser/extensions/extension_service.h" 7 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 #include "chrome/browser/ui/panels/base_panel_browser_test.h" 10 #include "chrome/browser/ui/panels/base_panel_browser_test.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 browser_view1->OnTitlebarMousePressed(panel1->GetBounds().origin()); 287 browser_view1->OnTitlebarMousePressed(panel1->GetBounds().origin());
288 browser_view1->OnTitlebarMouseDragged( 288 browser_view1->OnTitlebarMouseDragged(
289 panel1->GetBounds().origin().Subtract(gfx::Point(5, 5))); 289 panel1->GetBounds().origin().Subtract(gfx::Point(5, 5)));
290 EXPECT_TRUE(panel_manager->ShouldBringUpTitlebars( 290 EXPECT_TRUE(panel_manager->ShouldBringUpTitlebars(
291 0, 0)); 291 0, 0));
292 browser_view1->OnTitlebarMouseReleased(); 292 browser_view1->OnTitlebarMouseReleased();
293 293
294 panel1->Close(); 294 panel1->Close();
295 panel2->Close(); 295 panel2->Close();
296 panel3->Close(); 296 panel3->Close();
297 EXPECT_EQ(0, panel_manager->minimized_panel_count());
298 } 297 }
299 298
300 void TestDrawAttention() { 299 void TestDrawAttention() {
301 Panel* panel = CreatePanel("PanelTest"); 300 Panel* panel = CreatePanel("PanelTest");
302 PanelBrowserView* browser_view = GetBrowserView(panel); 301 PanelBrowserView* browser_view = GetBrowserView(panel);
303 PanelBrowserFrameView* frame_view = browser_view->GetFrameView(); 302 PanelBrowserFrameView* frame_view = browser_view->GetFrameView();
304 frame_view->title_label_->SetAutoColorReadabilityEnabled(false); 303 frame_view->title_label_->SetAutoColorReadabilityEnabled(false);
305 SkColor attention_color = frame_view->GetTitleColor( 304 SkColor attention_color = frame_view->GetTitleColor(
306 PanelBrowserFrameView::PAINT_FOR_ATTENTION); 305 PanelBrowserFrameView::PAINT_FOR_ATTENTION);
307 306
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 // TODO(jianli): Investigate why this fails on win trunk build. 605 // TODO(jianli): Investigate why this fails on win trunk build.
607 // http://crbug.com/102734 606 // http://crbug.com/102734
608 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, DISABLED_DrawAttention) { 607 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, DISABLED_DrawAttention) {
609 TestDrawAttention(); 608 TestDrawAttention();
610 } 609 }
611 610
612 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, ChangeAutoHideTaskBarThickness) { 611 IN_PROC_BROWSER_TEST_F(PanelBrowserViewTest, ChangeAutoHideTaskBarThickness) {
613 TestChangeAutoHideTaskBarThickness(); 612 TestChangeAutoHideTaskBarThickness();
614 } 613 }
615 #endif 614 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_view.cc ('k') | chrome/browser/ui/panels/panel_browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698