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

Unified Diff: LayoutTests/fast/plugins/plugin-placeholder.html

Issue 369893006: Allow HTMLPlugInElement to host UA shadow DOM. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/plugins/plugin-placeholder-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/plugins/plugin-placeholder.html
diff --git a/LayoutTests/fast/plugins/plugin-placeholder.html b/LayoutTests/fast/plugins/plugin-placeholder.html
new file mode 100644
index 0000000000000000000000000000000000000000..b90ba62f6fd1f634ff2dbadc652219ff8e546422
--- /dev/null
+++ b/LayoutTests/fast/plugins/plugin-placeholder.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+
+<style>
+applet, embed, object { display: block; margin: 10px; }
+</style>
+
+<!-- These should all appear as 300x150 green blocks. -->
+<applet code="DoesNotExist.class"></applet>
+<embed type="application/x-fake-plugin"></embed>
+<object type="application/x-fake-plugin"></object>
+
+<script>
+internals.settings.setJavaEnabled(true);
+
+var placeholderHTML =
+ '<style>:host { overflow: hidden }</style>' +
+ '<div style="margin: 0; padding: 0; width: 100%; height: 100%; background-color: green;"></div>';
+Array.prototype.forEach.call(document.querySelectorAll("applet, embed, object"), function(plugin) {
+ internals.forcePluginPlaceholder(plugin, placeholderHTML);
+});
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/plugins/plugin-placeholder-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698