blob: 00b79ef3d787e99681ef981db50e027725490771 [file] [log] [blame]
<video controls></video>
<script src=media-file.js></script>
<script src=video-test.js></script>
<script>
testExpected("video.currentSrc", "");
var mediaFile = findMediaFile("video", "content/test");
var source = document.createElement("source");
source.setAttribute("src", mediaFile);
video.appendChild(source);
testExpected("video.currentSrc", "");
waitForEvent("canplaythrough", function () {
testExpected("stripExtension(relativeURL(video.currentSrc))", stripExtension(mediaFile));
endTest();
});
</script>