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)); |
old_bounds = target->bounds(); |
// Snap left. |