OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/dom/Document.h" | 5 #include "core/dom/Document.h" |
6 #include "core/frame/LocalFrameView.h" | 6 #include "core/frame/LocalFrameView.h" |
7 #include "core/frame/Settings.h" | 7 #include "core/frame/Settings.h" |
8 #include "core/html/HTMLCanvasElement.h" | 8 #include "core/html/HTMLCanvasElement.h" |
9 #include "core/loader/EmptyClients.h" | 9 #include "core/loader/EmptyClients.h" |
10 #include "core/offscreencanvas/OffscreenCanvas.h" | 10 #include "core/offscreencanvas/OffscreenCanvas.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 Page().GetPage().SetVisibilityState(kPageVisibilityStateHidden, false); | 96 Page().GetPage().SetVisibilityState(kPageVisibilityStateHidden, false); |
97 platform()->RunUntilIdle(); | 97 platform()->RunUntilIdle(); |
98 EXPECT_TRUE(Dispatcher()->IsAnimationSuspended()); | 98 EXPECT_TRUE(Dispatcher()->IsAnimationSuspended()); |
99 | 99 |
100 // Change visibility to visible -> animation should resume | 100 // Change visibility to visible -> animation should resume |
101 Page().GetPage().SetVisibilityState(kPageVisibilityStateVisible, false); | 101 Page().GetPage().SetVisibilityState(kPageVisibilityStateVisible, false); |
102 platform()->RunUntilIdle(); | 102 platform()->RunUntilIdle(); |
103 EXPECT_FALSE(Dispatcher()->IsAnimationSuspended()); | 103 EXPECT_FALSE(Dispatcher()->IsAnimationSuspended()); |
104 } | 104 } |
105 | 105 |
106 } // blink | 106 } // namespace blink |
OLD | NEW |