| Index: ash/root_window_controller_unittest.cc
|
| diff --git a/ash/root_window_controller_unittest.cc b/ash/root_window_controller_unittest.cc
|
| index b27cc52ca1ad3b59c8b4a4b4de12a28e2b7e3c4d..0d40125b90f1c3551ff35a0fb527eec3958a3c3c 100644
|
| --- a/ash/root_window_controller_unittest.cc
|
| +++ b/ash/root_window_controller_unittest.cc
|
| @@ -473,5 +473,24 @@ TEST_F(RootWindowControllerTest, FocusBlockedWindow) {
|
| }
|
| }
|
|
|
| +typedef test::NoSessionAshTestBase NoSessionRootWindowControllerTest;
|
| +
|
| +// Make sure that an event handler exists for entire display area.
|
| +TEST_F(NoSessionRootWindowControllerTest, Event) {
|
| + aura::RootWindow* root = Shell::GetPrimaryRootWindow();
|
| + const gfx::Size size = root->bounds().size();
|
| + aura::Window* event_target = root->GetEventHandlerForPoint(gfx::Point(0, 0));
|
| + EXPECT_TRUE(event_target);
|
| + EXPECT_EQ(event_target,
|
| + root->GetEventHandlerForPoint(gfx::Point(0, size.height() - 1)));
|
| + EXPECT_EQ(event_target,
|
| + root->GetEventHandlerForPoint(gfx::Point(size.width() - 1, 0)));
|
| + EXPECT_EQ(event_target,
|
| + root->GetEventHandlerForPoint(gfx::Point(0, size.height() - 1)));
|
| + EXPECT_EQ(event_target,
|
| + root->GetEventHandlerForPoint(
|
| + gfx::Point(size.width() - 1, size.height() - 1)));
|
| +}
|
| +
|
| } // namespace test
|
| } // namespace ash
|
|
|