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

Unified Diff: ash/wm/workspace/workspace_window_resizer_unittest.cc

Issue 23431009: Windows docking should get triggered by pressing against the screen edge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows docking should get triggered by pressing against the screen edge (warn) Created 7 years, 3 months 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/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 7b7f255b7949f194d264edd2f63a21521a6b6b28..9a3b33309fdecba3a08493f6e9e3197c4046d292 100644
--- a/ash/wm/workspace/workspace_window_resizer_unittest.cc
+++ b/ash/wm/workspace/workspace_window_resizer_unittest.cc
@@ -1877,14 +1877,14 @@ TEST_F(WorkspaceWindowResizerTest, PhantomWindowShow) {
EXPECT_EQ(root_windows[0], window_->GetRootWindow());
scoped_ptr<WorkspaceWindowResizer> resizer(WorkspaceWindowResizer::Create(
- window_.get(), gfx::Point(), HTCAPTION,
+ window_.get(), gfx::Point(0,0), HTCAPTION,
aura::client::WINDOW_MOVE_SOURCE_MOUSE, empty_windows()));
ASSERT_TRUE(resizer.get());
EXPECT_FALSE(resizer->snap_phantom_window_controller_.get());
// The pointer is on the edge but not shared. The snap phantom window
// controller should be non-NULL.
- resizer->Drag(CalculateDragPoint(*resizer, 499, 0), 0);
+ resizer->Drag(CalculateDragPoint(*resizer, -1, 0), 0);
EXPECT_TRUE(resizer->snap_phantom_window_controller_.get());
PhantomWindowController* phantom_controller(
resizer->snap_phantom_window_controller_.get());
« ash/wm/workspace/snap_sizer.cc ('K') | « ash/wm/workspace/workspace_window_resizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698