Index: chrome/browser/ui/panels/panel_drag_browsertest.cc |
diff --git a/chrome/browser/ui/panels/panel_drag_browsertest.cc b/chrome/browser/ui/panels/panel_drag_browsertest.cc |
index a166f79355c65c4fb0656c11ea094205a4afd5e0..c7a7945209b26100f15db8131586911125bf6308 100644 |
--- a/chrome/browser/ui/panels/panel_drag_browsertest.cc |
+++ b/chrome/browser/ui/panels/panel_drag_browsertest.cc |
@@ -483,6 +483,11 @@ IN_PROC_BROWSER_TEST_F(PanelDragBrowserTest, |
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(); |