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

Side by Side Diff: ash/wm/custom_frame_view_ash_unittest.cc

Issue 22793011: ash:Shelf - Enable Alternate Shelf and Side Shelf by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/wm/custom_frame_view_ash.h" 5 #include "ash/wm/custom_frame_view_ash.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/test/ash_test_base.h" 8 #include "ash/test/ash_test_base.h"
9 #include "ash/wm/maximize_bubble_controller.h" 9 #include "ash/wm/maximize_bubble_controller.h"
10 #include "ash/wm/property_util.h" 10 #include "ash/wm/property_util.h"
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 end.Offset(40, 0); 245 end.Offset(40, 0);
246 generator.GestureScrollSequence(center, end, 246 generator.GestureScrollSequence(center, end,
247 base::TimeDelta::FromMilliseconds(100), 247 base::TimeDelta::FromMilliseconds(100),
248 3); 248 3);
249 RunAllPendingInMessageLoop(); 249 RunAllPendingInMessageLoop();
250 250
251 EXPECT_FALSE(ash::wm::IsWindowMaximized(window)); 251 EXPECT_FALSE(ash::wm::IsWindowMaximized(window));
252 EXPECT_FALSE(ash::wm::IsWindowMinimized(window)); 252 EXPECT_FALSE(ash::wm::IsWindowMinimized(window));
253 // This is a short resizing distance and different touch behavior 253 // This is a short resizing distance and different touch behavior
254 // applies which leads in half of the screen being used. 254 // applies which leads in half of the screen being used.
255 EXPECT_EQ("400,0 400x552", window->bounds().ToString()); 255 EXPECT_EQ("400,0 400x553", window->bounds().ToString());
256 } 256 }
257 257
258 // Snap left. 258 // Snap left.
259 { 259 {
260 center = view->GetBoundsInScreen().CenterPoint(); 260 center = view->GetBoundsInScreen().CenterPoint();
261 gfx::Point end = center; 261 gfx::Point end = center;
262 end.Offset(-40, 0); 262 end.Offset(-40, 0);
263 generator.GestureScrollSequence(center, end, 263 generator.GestureScrollSequence(center, end,
264 base::TimeDelta::FromMilliseconds(100), 264 base::TimeDelta::FromMilliseconds(100),
265 3); 265 3);
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 806
807 // Check that there was no size change. 807 // Check that there was no size change.
808 EXPECT_EQ(widget()->GetWindowBoundsInScreen().size().ToString(), 808 EXPECT_EQ(widget()->GetWindowBoundsInScreen().size().ToString(),
809 initial_bounds.size().ToString()); 809 initial_bounds.size().ToString());
810 // Check that there is no phantom window left open. 810 // Check that there is no phantom window left open.
811 EXPECT_FALSE(maximize_button->phantom_window_open()); 811 EXPECT_FALSE(maximize_button->phantom_window_open());
812 } 812 }
813 813
814 } // namespace test 814 } // namespace test
815 } // namespace ash 815 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shelf/shelf_widget_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698