Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Unified Diff: content/browser/web_contents/touch_editable_impl_aura_browsertest.cc

Issue 256213002: [Android] Reland "Provide unhandled tap event notifications" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
« no previous file with comments | « content/browser/renderer_host/input/input_router_impl_unittest.cc ('k') | content/common/input/web_input_event_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698