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

Unified Diff: content/renderer/input/input_event_filter_unittest.cc

Issue 1894363004: Articulate the cancel behavior in WebMouseWheelEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_all_passive
Patch Set: Rebase Created 4 years, 8 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
« no previous file with comments | « no previous file | content/renderer/input/main_thread_event_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/input/input_event_filter_unittest.cc
diff --git a/content/renderer/input/input_event_filter_unittest.cc b/content/renderer/input/input_event_filter_unittest.cc
index 43cc6816fa4fdf37b54efc719a603fcc18faef72..16b3f524616ee387cded086fd4791d6fdddd78c7 100644
--- a/content/renderer/input/input_event_filter_unittest.cc
+++ b/content/renderer/input/input_event_filter_unittest.cc
@@ -355,6 +355,8 @@ TEST_F(InputEventFilterTest, NonBlockingWheel) {
InputEventDispatchType dispatch_type = base::get<2>(params);
EXPECT_EQ(kEvents[i].size, event->size);
+ kEvents[i].dispatchType =
+ WebInputEvent::DispatchType::ListenersNonBlockingPassive;
EXPECT_TRUE(memcmp(&kEvents[i], event, event->size) == 0);
EXPECT_EQ(InputEventDispatchType::DISPATCH_TYPE_NON_BLOCKING_NOTIFY_MAIN,
dispatch_type);
@@ -371,6 +373,8 @@ TEST_F(InputEventFilterTest, NonBlockingWheel) {
static_cast<const WebMouseWheelEvent*>(base::get<0>(params));
InputEventDispatchType dispatch_type = base::get<2>(params);
+ kEvents[2].dispatchType =
+ WebInputEvent::DispatchType::ListenersNonBlockingPassive;
EXPECT_EQ(kEvents[2].size, event->size);
EXPECT_EQ(kEvents[2].deltaX + kEvents[3].deltaX, event->deltaX);
EXPECT_EQ(kEvents[2].deltaY + kEvents[3].deltaY, event->deltaY);
« no previous file with comments | « no previous file | content/renderer/input/main_thread_event_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698