3 <script src=media-file.js></script>
5 if (window.layoutTestController)
6 layoutTestController.waitUntilDone();
12 setSrcByTagName("video", findMediaFile("video", "content/test"));
13 video = document.getElementsByTagName('video')[0];
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);
24 video.currentTime = 0;
29 if (window.layoutTestController)
30 layoutTestController.notifyDone();
35 <body onload="start()">
36 <p>The controls should not depend on preload value.</p>
37 <video preload=none controls ></video>