Index: cc/trees/layer_tree_host_impl_unittest.cc |
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc |
index 6f69b5f6d9f25cf524962efa3ee9b792f8206f0b..cff0c3da8cd69d304435b190f7c15f1e7c32b45d 100644 |
--- a/cc/trees/layer_tree_host_impl_unittest.cc |
+++ b/cc/trees/layer_tree_host_impl_unittest.cc |
@@ -8179,6 +8179,11 @@ TEST_F(LayerTreeHostImplTest, ExternalTransformReflectedInNextDraw) { |
TEST_F(LayerTreeHostImplTest, ScrollAnimated) { |
SetupScrollAndContentsLayers(gfx::Size(100, 200)); |
+ |
+ // Shrink the outer viewport clip layer so that the outer viewport can scroll. |
+ host_impl_->OuterViewportScrollLayer()->parent()->SetBounds( |
+ gfx::Size(50, 100)); |
+ |
DrawFrame(); |
base::TimeTicks start_time = |
@@ -8191,6 +8196,7 @@ TEST_F(LayerTreeHostImplTest, ScrollAnimated) { |
host_impl_->ScrollAnimated(gfx::Point(), gfx::Vector2d(0, 50))); |
LayerImpl* scrolling_layer = host_impl_->CurrentlyScrollingLayer(); |
+ EXPECT_EQ(host_impl_->OuterViewportScrollLayer(), scrolling_layer); |
begin_frame_args.frame_time = start_time; |
host_impl_->WillBeginImplFrame(begin_frame_args); |