summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/blink-contrib/media-src-blocked.sub.html
blob: 57c8d5f650b2967bfabc088f93e1b9d5343d3782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<video></video>
<script src="../../../media-resources/media-file.js"></script>
<script src="../../../media-resources/video-test.js"></script>
<p>This test passes if it doesn&apos;t alert failure.</p>
<script>
    waitForEvent('loadedmetadata', function() {
        alert_assert('FAIL');
    });
    addEventListener('load', endTestLater, false);
    // 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>