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

Side by Side Diff: LayoutTests/permissionclient/plugin-permission.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
1 <!DOCTYPE html>
1 <html> 2 <html>
2 <head> 3 <head>
3 <script> 4 <script>
4 if (window.testRunner) { 5 if (window.testRunner) {
5 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 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 }
13 14
14 function test() 15 function test()
15 { 16 {
16 var plugin = document.createElement('embed'); 17 var plugin = document.createElement('embed');
17 plugin.setAttribute("type", "application/x-webkit-test-netscape"); 18 plugin.setAttribute("type", "application/x-webkit-test-netscape");
18 plugin.setAttribute("onNew", "loadedFirst()"); 19 plugin.setAttribute("onNew", "loadedFirst()");
19 document.getElementById("plugins").appendChild(plugin); 20 document.getElementById("plugins").appendChild(plugin);
(...skipping 25 matching lines...) Expand all
45 log("FAIL: second plugin loaded"); 46 log("FAIL: second plugin loaded");
46 } 47 }
47 </script> 48 </script>
48 </head> 49 </head>
49 <body onload="test()"> 50 <body onload="test()">
50 <div id="plugins"> 51 <div id="plugins">
51 </div> 52 </div>
52 <div id="results"></div> 53 <div id="results"></div>
53 </body> 54 </body>
54 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698