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 ca412b7d07ef36fd389c9a0f2b077901bd794db9..4a35868d5f1e67c632fcb9dd94a9a4c02ee57c8c 100644 |
--- a/cc/trees/layer_tree_host_impl_unittest.cc |
+++ b/cc/trees/layer_tree_host_impl_unittest.cc |
@@ -11753,6 +11753,13 @@ void LayerTreeHostImplTest::SetupMouseMoveAtTestScrollbarStates( |
host_impl_->MouseUp(); |
EXPECT_FALSE(animation_task_.Equals(base::Closure())); |
+ |
+ // Near scrollbar_1, then mouse down and unregister |
+ // scrollbar_2_animation_controller, then mouse up should not cause crash. |
+ host_impl_->MouseMoveAt(gfx::Point(40, 150)); |
+ host_impl_->MouseDown(); |
+ host_impl_->UnregisterScrollbarAnimationController(root_scroll->id()); |
+ host_impl_->MouseUp(); |
} |
TEST_F(LayerTreeHostImplTest, |