Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / controls-without-preload.html
blobf90ffa65a5f4ceff5b3250ac30ae9285abb4401a
1 <html>
2 <head>
3 <script src=media-file.js></script>
4 <script>
5 if (window.testRunner)
6 testRunner.waitUntilDone();
8 var video;
10 function start()
12 setSrcByTagName("video", findMediaFile("video", "content/test"));
13 video = document.getElementsByTagName('video')[0];
14 video.load();
15 video.play();
16 video.addEventListener("canplaythrough", canPlayThrough);
19 function canPlayThrough()
21 // Ensure that the frame is always the same in pixel result.
22 video.addEventListener("seeked", finish);
23 video.pause();
24 video.currentTime = 0;
27 function finish()
29 if (window.testRunner)
30 testRunner.notifyDone();
32 </script>
33 </head>
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>