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

Unified Diff: third_party/WebKit/Source/web/tests/WebInputEventConversionTest.cpp

Issue 1989623002: Suppressed MEs for gestures from cancelled PEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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: 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());
}
}
« no previous file with comments | « third_party/WebKit/Source/web/WebInputEventConversion.cpp ('k') | third_party/WebKit/public/web/WebInputEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698