Index: services/ui/ws/window_finder_unittest.cc |
diff --git a/services/ui/ws/window_finder_unittest.cc b/services/ui/ws/window_finder_unittest.cc |
index af96b0694a1d641849437e6f8fba387c0577466a..508f45c191f94be3f758364beca42eed21968d94 100644 |
--- a/services/ui/ws/window_finder_unittest.cc |
+++ b/services/ui/ws/window_finder_unittest.cc |
@@ -41,6 +41,11 @@ TEST(WindowFinderTest, FindDeepestVisibleWindow) { |
EXPECT_EQ(&child1, FindDeepestVisibleWindowForEvents(&root, &local_point)); |
EXPECT_EQ(gfx::Point(3, 4), local_point); |
+ local_point.SetPoint(13, 14); |
+ child1.SetAcceptEvents(false); |
+ EXPECT_EQ(&root, FindDeepestVisibleWindowForEvents(&root, &local_point)); |
+ EXPECT_EQ(gfx::Point(13, 14), local_point); |
+ |
child2.set_extended_hit_test_region(gfx::Insets(10, 10, 10, 10)); |
local_point.SetPoint(13, 14); |
EXPECT_EQ(&child2, FindDeepestVisibleWindowForEvents(&root, &local_point)); |