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

Unified Diff: cc/layers/layer_unittest.cc

Issue 2194833002: Overscroll and Elasticity for views::ScrollView Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-RouteThroughInputHandler
Patch Set: Restore functionality and fix bugs \o/ 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
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/proto/begin_main_frame_and_commit_state.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_unittest.cc
diff --git a/cc/layers/layer_unittest.cc b/cc/layers/layer_unittest.cc
index 303464c575519eb8fb9e1c9d307a9b48aea17876..0bcc9dc29816231bf046985c70ee8eda9705d9c5 100644
--- a/cc/layers/layer_unittest.cc
+++ b/cc/layers/layer_unittest.cc
@@ -194,6 +194,7 @@ class LayerSerializationTest : public testing::Test {
EXPECT_EQ(src->inputs_.user_scrollable_vertical,
dest->inputs_.user_scrollable_vertical);
EXPECT_EQ(src->inputs_.scroll_offset, dest->inputs_.scroll_offset);
+ EXPECT_EQ(src->inputs_.overscroll, dest->inputs_.overscroll);
EXPECT_EQ(update_rect, dest->inputs_.update_rect);
if (src->inputs_.scroll_parent) {
@@ -300,6 +301,7 @@ class LayerSerializationTest : public testing::Test {
layer->inputs_.user_scrollable_horizontal = false;
layer->inputs_.user_scrollable_vertical = true;
layer->inputs_.scroll_offset = gfx::ScrollOffset(3, 14);
+ layer->inputs_.overscroll = gfx::ScrollOffset(-10, -5);
layer->inputs_.update_rect = gfx::Rect(14, 15);
VerifyBaseLayerPropertiesSerializationAndDeserialization(layer.get());
@@ -353,6 +355,7 @@ class LayerSerializationTest : public testing::Test {
layer->inputs_.user_scrollable_vertical =
!layer->inputs_.user_scrollable_vertical;
layer->inputs_.scroll_offset = gfx::ScrollOffset(3, 14);
+ layer->inputs_.overscroll = gfx::ScrollOffset(-10, -5);
layer->inputs_.update_rect = gfx::Rect(14, 15);
VerifyBaseLayerPropertiesSerializationAndDeserialization(layer.get());
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/proto/begin_main_frame_and_commit_state.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698