Chromium Code Reviews| Index: ui/views/animation/ink_drop_impl_unittest.cc |
| diff --git a/ui/views/animation/ink_drop_impl_unittest.cc b/ui/views/animation/ink_drop_impl_unittest.cc |
| index a93fd64b07e43e8cbaa433328bdf860dbcd4734d..e7717daae826aedcfdc03a715e1fe81f961f0073 100644 |
| --- a/ui/views/animation/ink_drop_impl_unittest.cc |
| +++ b/ui/views/animation/ink_drop_impl_unittest.cc |
| @@ -478,6 +478,17 @@ TEST_P(InkDropImplHideAutoHighlightTest, |
| EXPECT_TRUE(test_api()->ShouldHighlight()); |
| } |
| +// Verifies there is no crash when animations are started during the destruction |
| +// of the InkDropRipple. See https://crbug.com/663335. |
|
tdanderson
2016/11/08 18:59:14
Thanks for adding a test
|
| +TEST_P(InkDropImplHideAutoHighlightTest, NoCrashDuringRippleTearDown) { |
| + ink_drop()->SetShowHighlightOnFocus(true); |
| + ink_drop()->SetFocused(true); |
| + ink_drop()->AnimateToState(InkDropState::ACTIVATED); |
| + ink_drop()->AnimateToState(InkDropState::DEACTIVATED); |
| + ink_drop()->AnimateToState(InkDropState::DEACTIVATED); |
| + DestroyInkDrop(); |
| +} |
| + |
| //////////////////////////////////////////////////////////////////////////////// |
| // |
| // InkDropImpl::AutoHighlightMode::SHOW_ON_RIPPLE specific tests |