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

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

Issue 27694002: Ability to block <audio> and <video> media. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename "video" to "media". Created 7 years, 2 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
1 <html> 1 <html>
jochen (gone - plz use gerrit) 2013/10/22 08:25:31 <!DOCTYPE html>
pwnall-personal 2013/10/22 11:56:18 Done. Also added in the files that I drew inspirat
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.dumpPermissionClientCallbacks(); 6 testRunner.dumpPermissionClientCallbacks();
7 testRunner.waitUntilDone();
7 } 8 }
8 9
9 function log(a) 10 function log(a)
10 { 11 {
11 document.getElementById("results").innerHTML += a + "<br>"; 12 document.getElementById("results").innerHTML += a + "<br>";
12 } 13 }
14
15 function done() {
16 if (window.testRunner) {
jochen (gone - plz use gerrit) 2013/10/22 08:25:31 no { } for single-line if statements
pwnall-personal 2013/10/22 11:56:18 Done.
17 testRunner.notifyDone();
18 }
19 }
13 </script> 20 </script>
14 </head> 21 </head>
15 <body> 22 <body>
16 <p> 23 <p>
17 This test checks that all URLs in a redirect chain are passed to the 24 This test checks that all URLs in a redirect chain are passed to the
18 PermissionClient. 25 PermissionClient.
19 </p> 26 </p>
20 <img src="http://127.0.0.1:8000/permissionclient/resources/redir.php?url=http:// 127.0.0.1:8000/permissionclient/resources/boston.gif" onerror="log('FAIL: error event for first image')"> 27 <audio src="http://127.0.0.1:8000/permissionclient/resources/redir.php?url=http: //127.0.0.1:8000/permissionclient/resources/silence.oga" onerror="done()" onload eddata="done()">
28 </audio>
21 <div id="results"></div> 29 <div id="results"></div>
22 </body> 30 </body>
23 </html> 31 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/permissionclient/audio-permissions-expected.txt » ('j') | Source/core/page/Settings.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698