Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / video-src.html
blobbda4c15df814f796f5bba0834786773ecb2a2b22
1 <html>
2 <head>
3 <script src=media-file.js></script>
4 <script src=video-test.js></script>
5 <script>
7 function test()
9 video = mediaElement = document.getElementsByTagName('video')[0];
10 var mediaFile = findMediaFile("video", "content/test");
12 waitForEvent("loadstart", function () {
13 testExpected("stripExtension(relativeURL(video.currentSrc))", stripExtension(mediaFile));
14 testExpected("stripExtension(relativeURL(video.src))", stripExtension(mediaFile));
15 testExpected("stripExtension(video.getAttribute('src'))", stripExtension(mediaFile));
16 endTest();
17 });
19 video.src = mediaFile;
21 </script>
22 </head>
24 <body onload="setTimeout(test, 100)">
25 <video controls></video>
26 </body>
27 </html>