Index: content/browser/renderer_host/input/touch_selection_controller_unittest.cc |
diff --git a/content/browser/renderer_host/input/touch_selection_controller_unittest.cc b/content/browser/renderer_host/input/touch_selection_controller_unittest.cc |
index f14860c4891cb67ddc5996eac90ce5ba218e83b4..d5aabbb0a565a283bd030efc82afffd8e56a89fb 100644 |
--- a/content/browser/renderer_host/input/touch_selection_controller_unittest.cc |
+++ b/content/browser/renderer_host/input/touch_selection_controller_unittest.cc |
@@ -256,6 +256,10 @@ TEST_F(TouchSelectionControllerTest, InsertionStaysHiddenIfEmptyRegionTapped) { |
ChangeInsertion(insertion_rect, visible); |
EXPECT_EQ(INSERTION_SHOWN, GetLastEventType()); |
EXPECT_EQ(insertion_rect.bottom_left(), GetLastEventAnchor()); |
+ |
+ // Single Tap on an empty edit field should clear insertion handle. |
+ controller().OnTapEvent(); |
+ EXPECT_EQ(INSERTION_CLEARED, GetLastEventType()); |
} |
TEST_F(TouchSelectionControllerTest, InsertionAppearsAfterTapFollowingTyping) { |