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 |