[GLIB] Unreviewed test gardenind. Gardened several flaky failures.
[WebKit-https.git] / LayoutTests / fast / animation / request-animation-frame-throttle-subframe-display-none.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/js-test-pre.js"></script>
5 <script>
6 description("Tests that requestAnimationFrame is not throttled in subframes that are display:none");
7 window.jsTestIsAsync = true;
8
9 function runTest()
10 {
11     testFrame = document.getElementById("testFrame");
12
13     // Force layout.
14     document.body.offsetTop;
15
16     shouldBeEqualToString("testFrame.contentWindow.internals.requestAnimationFrameThrottlingReasons()", "[Unthrottled]");
17     finishJSTest();
18 }
19 </script>
20 <iframe id="testFrame" style="position: absolute; top: 800px; display: none;" src="resources/requestAnimationFrame-frame.html" onload="runTest()"></iframe>
21 <script src="../../resources/js-test-post.js"></script>
22 </body>
23 </html>