| Index: ash/wm/workspace/workspace_window_resizer_unittest.cc
|
| diff --git a/ash/wm/workspace/workspace_window_resizer_unittest.cc b/ash/wm/workspace/workspace_window_resizer_unittest.cc
|
| index 693b04264f504530187316f2148bc56693374d98..aad2a2cfeb06256d11d26ac887cf2168d50fb893 100644
|
| --- a/ash/wm/workspace/workspace_window_resizer_unittest.cc
|
| +++ b/ash/wm/workspace/workspace_window_resizer_unittest.cc
|
| @@ -634,6 +634,8 @@ TEST_F(WorkspaceWindowResizerTest, Edge) {
|
|
|
| // Test if the restore bounds is correct in multiple displays.
|
| window_state->ClearRestoreBounds();
|
| + // Emulate user drag to clear snapped state.
|
| + window_state->SetBoundsChangedByUser(true);
|
|
|
| if (!SupportsMultipleDisplays())
|
| return;
|
| @@ -780,8 +782,9 @@ TEST_F(WorkspaceWindowResizerTest, DontDragOffBottomWithMultiDisplay) {
|
| window_->SetBounds(gfx::Rect(100, 200, 300, 20));
|
| DCHECK_LT(window_->bounds().height(),
|
| WorkspaceWindowResizer::kMinOnscreenHeight);
|
| + // Drag down avoiding dragging along the edge as that would side-snap.
|
| scoped_ptr<WindowResizer> resizer(CreateResizerForTest(
|
| - window_.get(), gfx::Point(), HTCAPTION));
|
| + window_.get(), gfx::Point(10, 0), HTCAPTION));
|
| ASSERT_TRUE(resizer.get());
|
| resizer->Drag(CalculateDragPoint(*resizer, 0, 400), 0);
|
| int expected_y = kRootHeight - window_->bounds().height() - 10;
|
| @@ -799,8 +802,9 @@ TEST_F(WorkspaceWindowResizerTest, DontDragOffBottomWithMultiDisplay) {
|
| {
|
| window_->SetBounds(gfx::Rect(100, 200, 300, 400));
|
| scoped_ptr<WindowResizer> resizer(CreateResizerForTest(
|
| - window_.get(), gfx::Point(), HTCAPTION));
|
| + window_.get(), gfx::Point(10, 0), HTCAPTION));
|
| ASSERT_TRUE(resizer.get());
|
| + // Drag down avoiding dragging along the edge as that would side-snap.
|
| resizer->Drag(CalculateDragPoint(*resizer, 0, 400), 0);
|
| int expected_y =
|
| kRootHeight - WorkspaceWindowResizer::kMinOnscreenHeight - 10;
|
|
|