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

Side by Side Diff: LayoutTests/http/tests/permissionclient/video-permissions.html

Issue 27694002: Ability to block <audio> and <video> media. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased. Created 6 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/permissionclient/video-permissions-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.dumpPermissionClientCallbacks();
8 testRunner.waitUntilDone();
9 }
10
11 function log(a)
12 {
13 document.getElementById("results").innerHTML += a + "<br>";
14 }
15
16 function done() {
17 if (window.testRunner)
18 testRunner.notifyDone();
19 }
20
21 function loaded()
22 {
23 var video = document.querySelector("video");
24 if (video.duration)
25 log("PASS: video loaded");
26 else
27 log("FAIL: video not loaded");
28 done();
29 }
30
31 function error()
32 {
33 log("FAIL: video loading error");
34 done();
35 }
36 </script>
37 </head>
38 <body>
39 <p>
40 This test checks that all URLs in a redirect chain are passed to the
41 PermissionClient.
42 </p>
43 <video src="http://127.0.0.1:8000/permissionclient/resources/redir.php?url=http: //127.0.0.1:8000/media/resources/test.ogv" onerror="error()" onloadeddata="loade d()">
44 </video>
45 <div id="results"></div>
46 </body>
47 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/permissionclient/video-permissions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698