Throttle RequestAnimationFrame in subframes that are outside the viewport
[WebKit-https.git] / LayoutTests / fast / animation / request-animation-frame-throttle-subframe-display-none-expected.txt
1 Tests that requestAnimationFrame is throttled in subframes that are display:none
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 Frame is initially visibile so requestAnimationFrame should not be throttled
7 PASS testFrame.contentWindow.internals.isRequestAnimationFrameThrottled() became false
8 PASS testFrame.contentWindow.internals.isRequestAnimationFrameThrottled() is false
9 Hiding subframe.
10 testFrame.style.display = 'none';
11 PASS testFrame.contentWindow.internals.isRequestAnimationFrameThrottled() became true
12 PASS testFrame.contentWindow.internals.isRequestAnimationFrameThrottled() is true
13 Show subframe again
14 testFrame.style.display = 'block';
15 PASS testFrame.contentWindow.internals.isRequestAnimationFrameThrottled() became false
16 PASS successfullyParsed is true
17
18 TEST COMPLETE
19