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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 2703823002: Record scroll_layer_id instead of scrollbar_animation_controller pointer (Closed)
Patch Set: rebase Created 3 years, 10 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/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698