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

Side by Side Diff: LayoutTests/fast/plugins/plugin-placeholder.html

Issue 1303233007: Blink Plugins: Remove Shadow DOM plugin placeholder tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
3 <style>
4 applet, embed, object { display: block; margin: 10px; }
5 </style>
6
7 <!-- These should all appear as 300x150 green blocks. -->
8 <applet code="DoesNotExist.class"></applet>
9 <embed type="application/x-fake-plugin"></embed>
10 <object type="application/x-fake-plugin"></object>
11
12 <template id="placeholder-template">
13 <style>
14 :host { overflow: hidden }
15 div { margin: 0; padding: 0; width: 100%; height: 100%; background-color : green; }
16 </style>
17 <div></div>
18 </template>
19
20 <script>
21 internals.settings.setJavaEnabled(true);
22
23 var templateContent = document.getElementById('placeholder-template').content;
24 Array.prototype.forEach.call(document.querySelectorAll("applet, embed, object"), function(plugin) {
25 internals.forcePluginPlaceholder(plugin, templateContent);
26 });
27 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/plugins/plugin-placeholder.css ('k') | LayoutTests/fast/plugins/plugin-placeholder-close.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698