Index: content/browser/renderer_host/input/touch_input_browsertest.cc |
diff --git a/content/browser/renderer_host/input/touch_input_browsertest.cc b/content/browser/renderer_host/input/touch_input_browsertest.cc |
index 13c49f2a450a3ef8516f16611c2f6b3bdaebb4bb..758f3ec6a29d87c8f72a31330cfe94818feeb336 100644 |
--- a/content/browser/renderer_host/input/touch_input_browsertest.cc |
+++ b/content/browser/renderer_host/input/touch_input_browsertest.cc |
@@ -183,8 +183,14 @@ |
GetWidgetHost()->ForwardTouchEventWithLatencyInfo(touch, ui::LatencyInfo()); |
filter()->WaitForAck(WebInputEvent::TouchStart); |
- EXPECT_EQ(INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS, |
- filter()->last_ack_state()); |
+ if (content::IsThreadedCompositingEnabled()) { |
+ EXPECT_EQ(INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS, |
+ filter()->last_ack_state()); |
+ } else { |
+ // http://crbug.com/326232: This should be NO_CONSUMER_EXISTS once |
+ // WebViewImpl::hasTouchEventHandlersAt() is implemented. |
+ EXPECT_EQ(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, filter()->last_ack_state()); |
+ } |
// If a touch-press is acked with NO_CONSUMER_EXISTS, then subsequent |
// touch-points don't need to be dispatched until the touch point is released. |
@@ -241,8 +247,14 @@ |
touch.PressPoint(25, 25); |
GetWidgetHost()->ForwardTouchEventWithLatencyInfo(touch, ui::LatencyInfo()); |
filter()->WaitForAck(WebInputEvent::TouchStart); |
- EXPECT_EQ(INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS, |
- filter()->last_ack_state()); |
+ if (content::IsThreadedCompositingEnabled()) { |
+ EXPECT_EQ(INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS, |
+ filter()->last_ack_state()); |
+ } else { |
+ // http://crbug.com/326232: This should be NO_CONSUMER_EXISTS once |
+ // WebViewImpl::hasTouchEventHandlersAt() is implemented. |
+ EXPECT_EQ(INPUT_EVENT_ACK_STATE_NOT_CONSUMED, filter()->last_ack_state()); |
+ } |
touch.PressPoint(25, 125); |
GetWidgetHost()->ForwardTouchEventWithLatencyInfo(touch, ui::LatencyInfo()); |