1 <video controls></video>
2 <script src=media-file.js></script>
3 <script src=video-test.js></script>
6 testExpected("video.currentSrc", "");
7 var mediaFile = findMediaFile("video", "content/test");
8 var source = document.createElement("source");
9 source.setAttribute("src", mediaFile);
10 video.appendChild(source);
12 testExpected("video.currentSrc", "");
14 waitForEvent("canplaythrough", function () {
15 testExpected("stripExtension(relativeURL(video.currentSrc))", stripExtension(mediaFile));