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

Unified Diff: content/renderer/render_widget_unittest.cc

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Update the test Created 3 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: content/renderer/render_widget_unittest.cc
diff --git a/content/renderer/render_widget_unittest.cc b/content/renderer/render_widget_unittest.cc
index bb0e63e4f22a4d82aff21227ef72869e5a006236..f7c697086230752632081cd65bad8b13121a06a4 100644
--- a/content/renderer/render_widget_unittest.cc
+++ b/content/renderer/render_widget_unittest.cc
@@ -118,7 +118,8 @@ class InteractiveRenderWidget : public RenderWidget {
event.data.scroll_update.delta_y),
blink::WebFloatPoint(event.x, event.y),
blink::WebFloatSize(event.data.scroll_update.velocity_x,
- event.data.scroll_update.velocity_y));
+ event.data.scroll_update.velocity_y),
+ blink::WebScrollBoundaryBehavior());
return true;
}
@@ -286,7 +287,8 @@ TEST_F(RenderWidgetUnittest, FlingOverscroll) {
// be sent as a separate IPC.
widget()->DidOverscroll(blink::WebFloatSize(10, 5), blink::WebFloatSize(5, 5),
blink::WebFloatPoint(1, 1),
- blink::WebFloatSize(10, 5));
+ blink::WebFloatSize(10, 5),
+ blink::WebScrollBoundaryBehavior());
ASSERT_EQ(1u, widget()->sink()->message_count());
const IPC::Message* message = widget()->sink()->GetMessageAt(0);
ASSERT_EQ(InputHostMsg_DidOverscroll::ID, message->type());

Powered by Google App Engine
This is Rietveld 408576698