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

Unified Diff: ui/events/blink/input_handler_proxy_unittest.cc

Issue 2793403002: Adds missing kBlockingAndPassive case to TouchpadFlingScroll (Closed)
Patch Set: Created 3 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 | « ui/events/blink/input_handler_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/blink/input_handler_proxy_unittest.cc
diff --git a/ui/events/blink/input_handler_proxy_unittest.cc b/ui/events/blink/input_handler_proxy_unittest.cc
index cc97babd1080298d257ea86b01ddc8fcb40214ab..adb98934b93eddcbcff62943e8e3f83bfa169bba 100644
--- a/ui/events/blink/input_handler_proxy_unittest.cc
+++ b/ui/events/blink/input_handler_proxy_unittest.cc
@@ -615,6 +615,19 @@ TEST_P(InputHandlerProxyTest, MouseWheelBlockingListener) {
VERIFY_AND_RESET_MOCKS();
}
+TEST_P(InputHandlerProxyTest, MouseWheelBlockingAndPassiveListener) {
+ expected_disposition_ = InputHandlerProxy::DID_NOT_HANDLE;
+ EXPECT_CALL(mock_input_handler_,
+ GetEventListenerProperties(cc::EventListenerClass::kMouseWheel))
+ .WillOnce(
+ testing::Return(cc::EventListenerProperties::kBlockingAndPassive));
+
+ WebMouseWheelEvent wheel(WebInputEvent::MouseWheel, WebInputEvent::ControlKey,
+ WebInputEvent::TimeStampForTesting);
+ EXPECT_EQ(expected_disposition_, input_handler_->HandleInputEvent(wheel));
+ VERIFY_AND_RESET_MOCKS();
+}
+
TEST_P(InputHandlerProxyTest, GestureScrollStarted) {
// We shouldn't send any events to the widget for this gesture.
expected_disposition_ = InputHandlerProxy::DID_HANDLE;
« no previous file with comments | « ui/events/blink/input_handler_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698