upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / media / controls-without-preload.html
1 <html>
2     <head>
3         <script src=media-file.js></script>
4         <script>
5             if (window.layoutTestController)
6                 layoutTestController.waitUntilDone();
7
8             var video;
9
10             function start()
11             {
12                 setSrcByTagName("video", findMediaFile("video", "content/test"));
13                 video = document.getElementsByTagName('video')[0];
14                 video.load();
15                 video.play();
16                 video.addEventListener("canplaythrough", canPlayThrough);
17             }
18
19             function canPlayThrough()
20             {
21                 // Ensure that the frame is always the same in pixel result.
22                 video.addEventListener("seeked", finish);
23                 video.pause();
24                 video.currentTime = 0;
25             }
26
27             function finish()
28             {
29                 if (window.layoutTestController)
30                     layoutTestController.notifyDone();
31             }
32         </script>
33     </head>
34
35     <body onload="start()">
36         <p>The controls should not depend on preload value.</p>
37         <video preload=none controls ></video>
38     </body>
39 </html>