summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/blink-contrib/media-src-allowed.sub.html
blob: 4cb4002d9788b4e1e83f6f7c38532020042d5a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<video></video>
<script src="../../../media-resources/media-file.js"></script>
<script src="../../../media-resources/video-test.js"></script>
<script>
    waitForEvent('loadedmetadata', function() {
        alert_assert('PASS');
        endTestLater();
    });
    // Find a supported media file.
    var mediaFile = findMediaFile("video", "content/test");
    var mimeType = mimeTypeForFile(mediaFile);
    video.src = "http://{{host}}:{{ports[http][0]}}/resources/load-and-stall.cgi?name=../../../media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=100000";

</script>