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