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

Unified Diff: cc/layers/layer_unittest.cc

Issue 1680613002: Adding momentum/overscroll to views:: ScrollViews Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Tableview layout. aaaand I think we are done Created 4 years, 5 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 | « 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 adc789400088ebb229c23f1374bba10f3b884bed..d0ce9a4243577e0a9d986b289c3d3b7dec584701 100644
--- a/cc/layers/layer_unittest.cc
+++ b/cc/layers/layer_unittest.cc
@@ -210,6 +210,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) {
@@ -315,6 +316,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());
@@ -367,6 +369,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