| Index: content/browser/renderer_host/input/input_router_impl_unittest.cc
|
| diff --git a/content/browser/renderer_host/input/input_router_impl_unittest.cc b/content/browser/renderer_host/input/input_router_impl_unittest.cc
|
| index 69adf747ef95443f9dbe1a10cc7d1abc2fa4a8fa..de00b479265e0b283cdd2dbce79dffdccd3256d8 100644
|
| --- a/content/browser/renderer_host/input/input_router_impl_unittest.cc
|
| +++ b/content/browser/renderer_host/input/input_router_impl_unittest.cc
|
| @@ -1279,10 +1279,17 @@ TEST_F(InputRouterImplTest, DoubleTapGestureDependsOnFirstTap) {
|
| EXPECT_EQ(1U, GetSentMessageCountAndResetSink());
|
|
|
| // The GestureTapUnconfirmed is converted into a tap, as the touch action is
|
| - // auto.
|
| + // none.
|
| SimulateGestureEvent(WebInputEvent::GestureTapUnconfirmed,
|
| WebGestureEvent::Touchscreen);
|
| EXPECT_EQ(1U, GetSentMessageCountAndResetSink());
|
| + // This test will become invalid if GestureTap stops requiring an ack.
|
| + ASSERT_FALSE(WebInputEventTraits::IgnoresAckDisposition(
|
| + GetEventWithType(WebInputEvent::GestureTap)));
|
| + EXPECT_EQ(2, client_->in_flight_event_count());
|
| + SendInputEventACK(WebInputEvent::GestureTap,
|
| + INPUT_EVENT_ACK_STATE_CONSUMED);
|
| + EXPECT_EQ(1, client_->in_flight_event_count());
|
|
|
| // This tap gesture is dropped, since the GestureTapUnconfirmed was turned
|
| // into a tap.
|
| @@ -1304,8 +1311,10 @@ TEST_F(InputRouterImplTest, DoubleTapGestureDependsOnFirstTap) {
|
| SimulateGestureEvent(WebInputEvent::GestureDoubleTap,
|
| WebGestureEvent::Touchscreen);
|
| // This test will become invalid if GestureDoubleTap stops requiring an ack.
|
| - DCHECK(!WebInputEventTraits::IgnoresAckDisposition(
|
| - GetEventWithType(WebInputEvent::GestureDoubleTap)));
|
| + ASSERT_FALSE(WebInputEventTraits::IgnoresAckDisposition(
|
| + GetEventWithType(WebInputEvent::GestureDoubleTap)));
|
| + EXPECT_EQ(1, client_->in_flight_event_count());
|
| + SendInputEventACK(WebInputEvent::GestureTap, INPUT_EVENT_ACK_STATE_CONSUMED);
|
| EXPECT_EQ(0, client_->in_flight_event_count());
|
| }
|
|
|
|
|