Index: content/browser/web_contents/touch_editable_impl_aura_browsertest.cc |
diff --git a/content/browser/web_contents/touch_editable_impl_aura_browsertest.cc b/content/browser/web_contents/touch_editable_impl_aura_browsertest.cc |
index f9c84a6e398385dfb5c5f2684d49cfe481a53f12..9cbbf8139690ea5916ce8bc31a4dd274328e56eb 100644 |
--- a/content/browser/web_contents/touch_editable_impl_aura_browsertest.cc |
+++ b/content/browser/web_contents/touch_editable_impl_aura_browsertest.cc |
@@ -369,9 +369,10 @@ IN_PROC_BROWSER_TEST_F(TouchEditableImplAuraTest, |
// Tap textfield |
touch_editable->Reset(); |
generator.GestureTapAt(gfx::Point(bounds.x() + 50, bounds.y() + 40)); |
- // Tap Down and Tap acks are sent synchronously. |
- touch_editable->WaitForSelectionChangeCallback(); |
+ // Tap Down acks are sent synchronously, while Tap acks are asynchronous. |
touch_editable->Reset(); |
+ touch_editable->WaitForGestureAck(); |
+ touch_editable->WaitForSelectionChangeCallback(); |
// Check if cursor handle is showing. |
EXPECT_NE(ui::TEXT_INPUT_TYPE_NONE, GetTextInputType(touch_editable)); |