| Index: chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
|
| diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
|
| index a0ec85ebb5b2769ddabba0da3295f0369a5a5acf..26d070a0c40550b49eaaf21c3ab1d841adfaf420 100644
|
| --- a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
|
| +++ b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
|
| @@ -565,6 +565,10 @@ IN_PROC_BROWSER_TEST_P(DetachToBrowserTabDragControllerTest, DragInSameWindow) {
|
| EXPECT_EQ("1 0", IDString(model));
|
| EXPECT_FALSE(TabDragController::IsActive());
|
| EXPECT_FALSE(tab_strip->IsDragSessionActive());
|
| +
|
| + // The tab strip should no longer have capture because the drag was ended and
|
| + // mouse/touch was released.
|
| + EXPECT_FALSE(tab_strip->GetWidget()->HasCapture());
|
| }
|
|
|
| namespace {
|
| @@ -622,7 +626,7 @@ IN_PROC_BROWSER_TEST_P(DetachToBrowserTabDragControllerTest,
|
| ASSERT_TRUE(TabDragController::IsActive());
|
| EXPECT_FALSE(GetIsDragged(browser()));
|
|
|
| - // Release the mouse, stopping the drag session.
|
| + // Release mouse or touch, stopping the drag session.
|
| ASSERT_TRUE(ReleaseInput());
|
| ASSERT_FALSE(tab_strip2->IsDragSessionActive());
|
| ASSERT_FALSE(tab_strip->IsDragSessionActive());
|
| @@ -634,6 +638,11 @@ IN_PROC_BROWSER_TEST_P(DetachToBrowserTabDragControllerTest,
|
| // Both windows should not be maximized
|
| EXPECT_FALSE(browser()->window()->IsMaximized());
|
| EXPECT_FALSE(browser2->window()->IsMaximized());
|
| +
|
| + // The tab strip should no longer have capture because the drag was ended and
|
| + // mouse/touch was released.
|
| + EXPECT_FALSE(tab_strip->GetWidget()->HasCapture());
|
| + EXPECT_FALSE(tab_strip2->GetWidget()->HasCapture());
|
| }
|
|
|
| namespace {
|
| @@ -716,6 +725,11 @@ IN_PROC_BROWSER_TEST_P(DetachToBrowserTabDragControllerTest,
|
| // Both windows should not be maximized
|
| EXPECT_FALSE(browser()->window()->IsMaximized());
|
| EXPECT_FALSE(new_browser->window()->IsMaximized());
|
| +
|
| + // The tab strip should no longer have capture because the drag was ended and
|
| + // mouse/touch was released.
|
| + EXPECT_FALSE(tab_strip->GetWidget()->HasCapture());
|
| + EXPECT_FALSE(tab_strip2->GetWidget()->HasCapture());
|
| }
|
|
|
| #if defined(OS_CHROMEOS)
|
| @@ -989,6 +1003,10 @@ IN_PROC_BROWSER_TEST_P(DetachToBrowserTabDragControllerTest,
|
|
|
| // Remaining browser window should not be maximized
|
| EXPECT_FALSE(browser()->window()->IsMaximized());
|
| +
|
| + // The tab strip should no longer have capture because the drag was ended and
|
| + // mouse/touch was released.
|
| + EXPECT_FALSE(tab_strip->GetWidget()->HasCapture());
|
| }
|
|
|
| namespace {
|
|
|