Index: ui/touch_selection/touch_handle_unittest.cc |
diff --git a/ui/touch_selection/touch_handle_unittest.cc b/ui/touch_selection/touch_handle_unittest.cc |
index 8e929815157bca518ed896be97dfd1dfac95e529..944db37e2f3f6f857f1fa9041ccecfdce320b4a5 100644 |
--- a/ui/touch_selection/touch_handle_unittest.cc |
+++ b/ui/touch_selection/touch_handle_unittest.cc |
@@ -458,6 +458,14 @@ TEST_F(TouchHandleTest, DragTargettingUsesTouchSize) { |
event.SetTouchMajor(0); |
EXPECT_TRUE(handle.WillHandleTouchEvent(event)); |
EXPECT_TRUE(IsDragging()); |
+ |
+ // Touches centered above the handle region should never register a hit, even |
+ // if the touch region intersects the handle region. |
+ event = MockMotionEvent(MockMotionEvent::ACTION_DOWN, event_time, |
+ kDefaultDrawableSize / 2.f, -kTouchSize / 3.f); |
+ event.SetTouchMajor(kTouchSize); |
+ EXPECT_FALSE(handle.WillHandleTouchEvent(event)); |
+ EXPECT_FALSE(IsDragging()); |
} |
TEST_F(TouchHandleTest, Tap) { |