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

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

Issue 698533003: Implement support for closing shadow DOM plugin placeholders. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: mkwst comments Created 6 years, 1 month 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
Index: LayoutTests/fast/plugins/plugin-placeholder-structured.html
diff --git a/LayoutTests/fast/plugins/plugin-placeholder-structured.html b/LayoutTests/fast/plugins/plugin-placeholder-structured.html
index 168f0a8256fd3d679a669efaedd27b522a2c2e34..ed7698e09d0e96178668e1a2dce3d4126d2d565c 100644
--- a/LayoutTests/fast/plugins/plugin-placeholder-structured.html
+++ b/LayoutTests/fast/plugins/plugin-placeholder-structured.html
@@ -1,9 +1,14 @@
<!DOCTYPE html>
-<!-- The message inserted below should be shown with some suitable style. -->
-<object type="application/x-fake-plugin"></object>
+<style>
+applet, embed, object { display: block; }
+</style>
+
+<!-- The placeholders inserted below should be shown with some suitable style. -->
+<object id="plugin1" type="application/x-fake-plugin"></object>
+<object id="plugin2" type="application/x-fake-plugin"></object>
<script>
-var plugin = document.querySelector("object");
-internals.forcePluginPlaceholder(plugin, { message: "Sorry, but your plugin couldn't be loaded." });
+internals.forcePluginPlaceholder(document.getElementById('plugin1'), { message: "Sorry, but your plugin couldn't be loaded." });
+internals.forcePluginPlaceholder(document.getElementById('plugin2'), { message: "Sorry, but your plugin couldn't be loaded.", closeable: true });
</script>

Powered by Google App Engine
This is Rietveld 408576698