| Index: ui/aura/window_unittest.cc
|
| diff --git a/ui/aura/window_unittest.cc b/ui/aura/window_unittest.cc
|
| index f78ed7c38a438616c0ab714782538163e9edd0b8..48592f75e42fe255ae1b460cede7b2ac95e57d50 100644
|
| --- a/ui/aura/window_unittest.cc
|
| +++ b/ui/aura/window_unittest.cc
|
| @@ -273,7 +273,7 @@ TEST_F(WindowTest, HitTest) {
|
| Window w1(new ColorTestWindowDelegate(SK_ColorWHITE));
|
| w1.set_id(1);
|
| w1.Init(ui::Layer::LAYER_TEXTURED);
|
| - w1.SetBounds(gfx::Rect(10, 10, 50, 50));
|
| + w1.SetBounds(gfx::Rect(10, 20, 50, 60));
|
| w1.Show();
|
| w1.SetParent(NULL);
|
|
|
| @@ -281,6 +281,11 @@ TEST_F(WindowTest, HitTest) {
|
| EXPECT_TRUE(w1.HitTest(gfx::Point(1, 1)));
|
| EXPECT_FALSE(w1.HitTest(gfx::Point(-1, -1)));
|
|
|
| + // We can expand the bounds slightly to track events outside our border.
|
| + w1.set_hit_test_bounds_inset(-1);
|
| + EXPECT_TRUE(w1.HitTest(gfx::Point(-1, -1)));
|
| + EXPECT_FALSE(w1.HitTest(gfx::Point(-2, -2)));
|
| +
|
| // TODO(beng): clip Window to parent.
|
| }
|
|
|
|
|