ee2f49d0e9518afd3043b523e18491f80a0e78e7
[WebKit-https.git] / LayoutTests / fast / animation / request-animation-frame-iframe.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="stylesheet" href="../js/resources/js-test-style.css">
5 <script src="../js/resources/js-test-pre.js"></script>
6 </head>
7 <body>
8     <iframe src="script-tests/request-animation-frame-subframe.html" width="700" height="500"></iframe>
9     <script type="text/javascript" charset="utf-8">
10         description("Tests requestAnimationFrame in an iframe");
11
12         var callbackInvoked = false;
13     
14         if (window.layoutTestController) {
15             layoutTestController.dumpAsText();
16             layoutTestController.waitUntilDone();
17         }
18
19         // Called from subframe.
20         function doDisplay()
21         {
22             if (window.layoutTestController)
23                 layoutTestController.display();
24         }
25     
26         function doCheckResult()
27         {
28             shouldBeTrue("callbackInvoked");
29         }
30     
31         function doTestDone()
32         {
33             isSuccessfullyParsed();
34             if (window.layoutTestController)
35                 layoutTestController.notifyDone();
36         }
37
38         var successfullyParsed = true;
39     </script>
40
41     <script src="../js/resources/js-test-post-function.js"></script>
42 </body>
43 </html>