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

Unified Diff: ash/wm/overview/window_selector_unittest.cc

Issue 251103005: Added arrow key navigation to Overview Mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase with latest changes, test stub (don't look into that yet!) Created 6 years, 8 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/overview/window_selector_unittest.cc
diff --git a/ash/wm/overview/window_selector_unittest.cc b/ash/wm/overview/window_selector_unittest.cc
index 028bacd816856a72a8bc493ee611552cef90ea8f..b55da0117d61ebe7161d6936ddbf59778509149b 100644
--- a/ash/wm/overview/window_selector_unittest.cc
+++ b/ash/wm/overview/window_selector_unittest.cc
@@ -1175,6 +1175,20 @@ TEST_F(WindowSelectorTest, DisplayOrientationChanged) {
EXPECT_TRUE(root_window->bounds().Contains(
ToEnclosingRect(GetTransformedTargetBounds(*iter))));
}
+
+// Tests selecting a window in OM with the arrow keys.
+TEST_F(WindowSelectorTest, ArrowKeyNavigation) {
+ gfx::Rect bounds1(0, 0, 100, 100);
+ gfx::Rect bounds2(450, 450, 550, 550);
+
+ scoped_ptr<aura::Window> window1(CreateWindow(bounds1));
+ scoped_ptr<aura::Window> window2(CreateWindow(bounds1));
+ wm::ActivateWindow(window1.get());
+
+
+
+ ToggleOverview();
+
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698