| <script src=media-file.js></script> |
| <script src=video-test.js></script> |
| var startTime = new Date().getTime(); |
| testRunner.waitUntilDone(); |
| window.addEventListener('load', function() |
| var endTime = new Date().getTime(); |
| var loadTime = endTime - startTime; |
| document.getElementById('load-time').innerHTML = 'Load Time > 2s' + ' FAIL'; |
| document.getElementById('load-time').innerHTML = 'Load Time < 2s' + ' PASS'; |
| <video id="video" controls preload="none"> |
| var vid = document.getElementById('video'); |
| vid.src = findMediaFile("video", "content/test.mp4"); |
| <div>Document load event triggered: <span id="load-time">not yet</span></div> |