| Index: ash/wm/window_animations_unittest.cc
|
| diff --git a/ash/wm/window_animations_unittest.cc b/ash/wm/window_animations_unittest.cc
|
| index 0e1a4d8b24d3553cb1b3c08093f60230dc0f8ad9..4bed566020a9aaa744d14fbbf29b59283c290ad8 100644
|
| --- a/ash/wm/window_animations_unittest.cc
|
| +++ b/ash/wm/window_animations_unittest.cc
|
| @@ -95,6 +95,18 @@ TEST_F(WindowAnimationsTest, HideShowBrightnessGrayscaleAnimation) {
|
| EXPECT_TRUE(window->layer()->visible());
|
| }
|
|
|
| +TEST_F(WindowAnimationsTest, HideRotateAnimationNoLeak) {
|
| + scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(0));
|
| + window->Show();
|
| + ::wm::SetWindowVisibilityAnimationType(
|
| + window.get(),
|
| + ::wm::WINDOW_VISIBILITY_ANIMATION_TYPE_ROTATE);
|
| +
|
| + // Should not leak with LSAN enabled.
|
| + EXPECT_NO_FATAL_FAILURE(
|
| + AnimateOnChildWindowVisibilityChanged(window.get(), false));
|
| +}
|
| +
|
| TEST_F(WindowAnimationsTest, LayerTargetVisibility) {
|
| scoped_ptr<aura::Window> window(CreateTestWindowInShellWithId(0));
|
|
|
|
|