summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/media/video-src-source.html
blob: 6cf94969fd50977d84e6a058feda05a8ec80415d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<body>
<video><source></source></video>
<script src=media-file.js></script>
<!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
     (Please avoid writing new tests using video-test.js) -->
<script src=video-test.js></script>
<script>
    var mediaFile = findMediaFile("video", "content/test");
    waitForEvent('loadstart', function () {
        testExpected("stripExtension(relativeURL(video.currentSrc))", stripExtension(mediaFile));
        endTest();
    } );
    document.getElementsByTagName('source')[0].src = "content/error.mpeg";
    mediaElement.src = mediaFile;
</script>