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

Unified Diff: chrome/browser/ui/panels/old_panel_drag_browsertest.cc

Issue 10828220: Fix Linux panels to return to minimized mode after mouse moves away. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update DragMinimizedPanelWhileDrawingAttention Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/panels/old_panel_browsertest.cc ('k') | chrome/browser/ui/panels/panel_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/old_panel_drag_browsertest.cc
diff --git a/chrome/browser/ui/panels/old_panel_drag_browsertest.cc b/chrome/browser/ui/panels/old_panel_drag_browsertest.cc
index 72858b6562137912361406d3722fd782666e122d..ab832f74e7f0c89d893db72add16a404ac7afea2 100644
--- a/chrome/browser/ui/panels/old_panel_drag_browsertest.cc
+++ b/chrome/browser/ui/panels/old_panel_drag_browsertest.cc
@@ -480,6 +480,11 @@ IN_PROC_BROWSER_TEST_F(OldPanelDragBrowserTest,
EXPECT_FALSE(panel->IsDrawingAttention());
EXPECT_EQ(Panel::TITLE_ONLY, panel->expansion_state());
+ // Typical user scenario will detect the mouse in the panel
+ // after attention is cleared, causing titles to pop up, so
+ // we simulate that here.
+ MoveMouse(mouse_location);
+
// Verify panel returns to fully minimized state after dragging ends once
// mouse moves away from the panel.
panel_testing->FinishDragTitlebar();
« no previous file with comments | « chrome/browser/ui/panels/old_panel_browsertest.cc ('k') | chrome/browser/ui/panels/panel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698