Index: third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp b/third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp |
index ea2b8047ca5866287f9011a332d45020416013ba..547c1bda4bccc2169a4eefe095e0c3579eda3937 100644 |
--- a/third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp |
@@ -1050,6 +1050,7 @@ TEST(WebInputEventConversionTest, PlatformGestureEventBuilder) |
webGestureEvent.data.scrollBegin.deltaXHint = 100; |
webGestureEvent.data.scrollBegin.deltaYHint = 10; |
webGestureEvent.data.scrollBegin.deltaHintUnits = WebGestureEvent::Pixels; |
+ webGestureEvent.uniqueTouchEventId = 12345U; |
PlatformGestureEventBuilder platformGestureBuilder(view, webGestureEvent); |
EXPECT_EQ(PlatformGestureSourceTouchpad, platformGestureBuilder.source()); |
@@ -1063,6 +1064,7 @@ TEST(WebInputEventConversionTest, PlatformGestureEventBuilder) |
EXPECT_EQ(100, platformGestureBuilder.deltaX()); |
EXPECT_EQ(10, platformGestureBuilder.deltaY()); |
EXPECT_EQ(ScrollGranularity::ScrollByPixel, platformGestureBuilder.deltaUnits()); |
+ EXPECT_EQ(12345U, platformGestureBuilder.uniqueTouchEventId()); |
} |
{ |
@@ -1077,6 +1079,7 @@ TEST(WebInputEventConversionTest, PlatformGestureEventBuilder) |
webGestureEvent.data.scrollEnd.inertialPhase = WebGestureEvent::NonMomentumPhase; |
webGestureEvent.data.scrollEnd.synthetic = true; |
webGestureEvent.data.scrollEnd.deltaUnits = WebGestureEvent::Page; |
+ webGestureEvent.uniqueTouchEventId = 12345U; |
PlatformGestureEventBuilder platformGestureBuilder(view, webGestureEvent); |
EXPECT_EQ(PlatformGestureSourceTouchpad, platformGestureBuilder.source()); |
@@ -1088,6 +1091,7 @@ TEST(WebInputEventConversionTest, PlatformGestureEventBuilder) |
EXPECT_EQ(ScrollInertialPhaseNonMomentum, platformGestureBuilder.inertialPhase()); |
EXPECT_TRUE(platformGestureBuilder.synthetic()); |
EXPECT_EQ(ScrollGranularity::ScrollByPage, platformGestureBuilder.deltaUnits()); |
+ EXPECT_EQ(12345U, platformGestureBuilder.uniqueTouchEventId()); |
} |
} |