Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-append-source.html
blob00b79ef3d787e99681ef981db50e027725490771
1 <video controls></video>
2 <script src=media-file.js></script>
3 <script src=video-test.js></script>
5 <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));
16 endTest();
17 });
19 </script>