Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/media-src-allowed.html

Issue 2766913003: Fixed and improved content-security-policy/media-src tests (Closed)
Patch Set: Re-edited TestExpectations after a rebase-update to try to make the patch apply properly this time Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>This tests that video is loaded as per "Content-Security-Policy".</title>
3 <meta http-equiv="Content-Security-Policy" content="media-src http://127.0.0.1:8 000">
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script src="../../media-resources/media-file.js"></script>
7 <video></video>
8 <script>
9 async_test(function(t) {
10 var video = document.querySelector("video");
11 video.onloadedmetadata = t.step_func_done();
12
13 // Find a supported media file.
14 var mediaFile = findMediaFile("video", "content/test");
15 var mimeType = mimeTypeForFile(mediaFile);
16
17 video.src = "http://127.0.0.1:8000/resources/load-and-stall.php?name=../../. ./media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=100000";
18 });
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698