3 <script src=media-file.js></script>
4 <script src=video-test.js></script>
9 var panel = document.getElementById("panel");
10 var mediaFile = findMediaFile("video", "content/test");
12 panel.innerHTML = "<video controls><source src='" + mediaFile + "'></video>";
14 video = mediaElement = document.getElementsByTagName('video')[0];
15 waitForEvent("loadstart", function () {
16 testExpected("stripExtension(relativeURL(video.currentSrc))", stripExtension(mediaFile));
18 source = document.querySelector('source');
19 testExpected("stripExtension(source.getAttribute('src'))", stripExtension(mediaFile));
20 testExpected("stripExtension(relativeURL(source.src))", stripExtension(mediaFile));
28 <body onload="setTimeout(test, 100)">