<body> | |
<script src=video-test.js></script> | |
<video src=content/test.mp4 controls> | |
<source src=content/error.mpeg> | |
</video> | |
<script> | |
video = media = document.getElementsByTagName('video')[0]; | |
waitForEventTestAndEnd('begin', "relativeURL(video.currentSrc) == 'content/test.mp4'"); | |
</script> |