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

Unified Diff: third_party/WebKit/Source/core/input/EventHandlerTest.cpp

Issue 2510133002: Add getCoalescedEvents API to PointerEvent (Closed)
Patch Set: rebase Created 4 years, 1 month 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/core/input/EventHandlerTest.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
index 969bd3cdef00556790b536ca2ab8f0dece1330fa..fb48cc0a09e3c5090b279c0fd5f421499f84b904 100644
--- a/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandlerTest.cpp
@@ -85,7 +85,8 @@ TEST_F(EventHandlerTest, dragSelectionAfterScroll) {
IntPoint(100, 50), IntPoint(200, 250), WebPointerProperties::Button::Left,
PlatformEvent::MouseMoved, 1, PlatformEvent::Modifiers::LeftButtonDown,
WTF::monotonicallyIncreasingTime());
- document().frame()->eventHandler().handleMouseMoveEvent(mouseMoveEvent);
+ document().frame()->eventHandler().handleMouseMoveEvent(
+ mouseMoveEvent, Vector<PlatformMouseEvent>());
page().autoscrollController().animate(WTF::monotonicallyIncreasingTime());
page().animator().serviceScriptedAnimations(
@@ -189,7 +190,8 @@ TEST_F(EventHandlerTest, draggedInlinePositionTest) {
PlatformEvent::MouseMoved, 1,
PlatformEvent::Modifiers::LeftButtonDown,
WTF::monotonicallyIncreasingTime());
- document().frame()->eventHandler().handleMouseMoveEvent(mouseMoveEvent);
+ document().frame()->eventHandler().handleMouseMoveEvent(
+ mouseMoveEvent, Vector<PlatformMouseEvent>());
EXPECT_EQ(
IntPoint(12, 29),
@@ -222,7 +224,8 @@ TEST_F(EventHandlerTest, draggedSVGImagePositionTest) {
PlatformEvent::MouseMoved, 1,
PlatformEvent::Modifiers::LeftButtonDown,
WTF::monotonicallyIncreasingTime());
- document().frame()->eventHandler().handleMouseMoveEvent(mouseMoveEvent);
+ document().frame()->eventHandler().handleMouseMoveEvent(
+ mouseMoveEvent, Vector<PlatformMouseEvent>());
EXPECT_EQ(
IntPoint(45, 44),
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/input/MouseEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698