Chromium Code Reviews| Index: ash/wm/toplevel_window_event_handler_unittest.cc |
| diff --git a/ash/wm/toplevel_window_event_handler_unittest.cc b/ash/wm/toplevel_window_event_handler_unittest.cc |
| index 99e7418bb9dfb30430a3a50b28146bb533114515..81972ae3a7649df7131252b90b1d85547ad9d0a8 100644 |
| --- a/ash/wm/toplevel_window_event_handler_unittest.cc |
| +++ b/ash/wm/toplevel_window_event_handler_unittest.cc |
| @@ -405,6 +405,10 @@ TEST_F(ToplevelWindowEventHandlerTest, GestureDrag) { |
| EXPECT_EQ(snapped_bounds.ToString(), target->bounds().ToString()); |
| } |
| + // Resetting the bounds avoids a situation when the initial drag before |
| + // the fling results in target getting stuck at the edge and fling |
| + // incrementing the snapping sequence against our assumptions. |
| + target->SetBounds(gfx::Rect(700, 0, 100, 100)); |
|
flackr
2013/11/06 20:02:31
I'm not sure I follow why enabling docking necessi
varkha
2013/11/06 21:19:53
This was also due to sticky behavior being enabled
|
| old_bounds = target->bounds(); |
| // Snap left. |