Initialize Tizen 2.3
[framework/web/webkit-efl.git] / LayoutTests / compositing / video-page-visibility.html
1 <html>
2 <head>
3   <style>
4     video {
5       width: 400px;
6       height: 300px;
7     }
8   </style>
9   <script type="text/javascript" charset="utf-8">
10     if (window.testRunner) {
11       testRunner.dumpAsText(true);
12       testRunner.waitUntilDone();
13     }
14   </script>
15 </head>
16 <body>
17   <video></video>
18   <script>
19     var video = document.getElementsByTagName('video')[0];
20     video.src = 'resources/video.' + (video.canPlayType('video/ogg') ? 'ogv' : 'mp4');
21     video.addEventListener('canplaythrough', function() {
22       if (window.testRunner) {
23         testRunner.display();
24         testRunner.setPageVisibility("hidden");
25         testRunner.display();
26         testRunner.resetPageVisibility();
27         testRunner.notifyDone();
28       }
29     }, false);
30   </script>
31 </body>
32 </html>