Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3420)

Unified Diff: ash/wm/toplevel_window_event_handler_unittest.cc

Issue 55363004: Enables docked windows by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enables docked windows by default (comments) Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698