[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / video-src.html
1 <html>
2     <head>
3         <script src=media-file.js></script>
4         <script src=video-test.js></script>
5         <script>
6
7             function test()
8             {
9                 video = mediaElement = document.getElementsByTagName('video')[0];
10                 var mediaFile = findMediaFile("video", "content/test");
11             
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                 });
18             
19                 video.src = mediaFile;
20             }
21         </script>
22     </head>
23
24     <body onload="setTimeout(test, 100)">
25         <video controls></video>
26     </body>
27 </html>
28