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

Unified Diff: athena/wm/window_manager_unittest.cc

Issue 574113004: [Athena] Fix switching activities by swiping from the right bezel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_split
Patch Set: Created 6 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
« athena/wm/split_view_controller.cc ('K') | « athena/wm/split_view_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/wm/window_manager_unittest.cc
diff --git a/athena/wm/window_manager_unittest.cc b/athena/wm/window_manager_unittest.cc
index 9641c4854ca98d7c4fcce0fc8426487af6fafb79..11121f911d03eca919415b2a3ebd04a14d4e0630 100644
--- a/athena/wm/window_manager_unittest.cc
+++ b/athena/wm/window_manager_unittest.cc
@@ -155,13 +155,24 @@ TEST_F(WindowManagerTest, BezelGestureToSwitchBetweenWindows) {
const gfx::Point left_bezel_points[2] = {
gfx::Point(2, 10), gfx::Point(4, 20),
};
- const int kEventTimeSepration = 16;
+ const int kEventTimeSeparation = 16;
int width = root_window()->bounds().width();
generator.GestureMultiFingerScroll(
- 2, left_bezel_points, kEventTimeSepration, 1, width, 0);
+ 2, left_bezel_points, kEventTimeSeparation, 1, width, 0);
EXPECT_TRUE(wm::IsActiveWindow(second.get()));
EXPECT_EQ(second.get(),
wm_api.GetWindowListProvider()->GetWindowList().back());
+
+ // Do a two-finger swipe from the right bezel.
+ const gfx::Point right_bezel_points[2] = {
+ gfx::Point(width - 5, 10),
+ gfx::Point(width - 10, 20)
+ };
+ generator.GestureMultiFingerScroll(
+ 2, right_bezel_points, kEventTimeSeparation, 1, -width, 0);
+ EXPECT_TRUE(wm::IsActiveWindow(third.get()));
+ EXPECT_EQ(third.get(),
+ wm_api.GetWindowListProvider()->GetWindowList().back());
}
TEST_F(WindowManagerTest, TitleDragSwitchBetweenWindows) {
« athena/wm/split_view_controller.cc ('K') | « athena/wm/split_view_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698