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

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: Better rebase. 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
OLDNEW
(Empty)
1 <html>
jochen (gone - plz use gerrit) 2014/06/12 14:44:53 <!DOCTYPE html>
pwnall-personal 2014/06/13 02:54:47 Done. Thank you!
2 <head>
3 <script>
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.dumpPermissionClientCallbacks();
7 testRunner.waitUntilDone();
8 }
9
10 function log(a)
11 {
12 document.getElementById("results").innerHTML += a + "<br>";
13 }
14
15 function done() {
jochen (gone - plz use gerrit) 2014/06/12 14:44:53 nit. { on separate line
pwnall-personal 2014/06/13 02:54:47 Done.
16 if (window.testRunner)
17 testRunner.notifyDone();
18 }
19
20 function loaded() {
21 var video = document.querySelector('video');
jochen (gone - plz use gerrit) 2014/06/12 14:44:53 nit. don't mix ' and "
pwnall-personal 2014/06/13 02:54:47 Done.
22 if (video.duration)
23 log("PASS: video loaded");
24 else
25 log("FAIL: video not loaded");
26 done();
27 }
jochen (gone - plz use gerrit) 2014/06/12 14:44:53 nit. add empty line
pwnall-personal 2014/06/13 02:54:47 Done.
28 function error() {
29 log("FAIL: video loading error");
30 done();
31 }
32 </script>
33 </head>
34 <body>
35 <p>
36 This test checks that all URLs in a redirect chain are passed to the
37 PermissionClient.
38 </p>
39 <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()">
40 </video>
41 <div id="results"></div>
42 </body>
43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698