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

Unified Diff: LayoutTests/fast/plugins/plugin-placeholder-focus.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, 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
Index: LayoutTests/fast/plugins/plugin-placeholder-focus.html
diff --git a/LayoutTests/fast/plugins/plugin-placeholder-focus.html b/LayoutTests/fast/plugins/plugin-placeholder-focus.html
deleted file mode 100644
index fc4ce9339155a8da0347526f25049b867cbda860..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/plugins/plugin-placeholder-focus.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/js-test.js"></script>
-<div id="description"></div>
-<div id="console"></div>
-
-<input id="input1">
-<object id="plugin1" type="application/x-fake-plugin"></object>
-
-<script>
-description('Ensures that elements within a plugin placeholder can be keyboard focused.');
-
-// Close buttons are focusable, so we expect focus to move into and out of the placeholder.
-var input1 = document.getElementById("input1");
-var plugin1 = document.getElementById("plugin1");
-internals.forcePluginPlaceholder(plugin1, { closeable: true });
-var shadowRoot1 = internals.youngestShadowRoot(plugin1);
-input1.focus();
-shouldBe("document.activeElement", "input1");
-shouldBeNull("shadowRoot1.activeElement");
-eventSender.keyDown("\t");
-shouldBe("document.activeElement", "plugin1");
-shouldBeNonNull("shadowRoot1.activeElement");
-eventSender.keyDown("\t", ["shiftKey"]);
-shouldBe("document.activeElement", "input1");
-shouldBeNull("shadowRoot1.activeElement");
-document.activeElement.blur();
-</script>

Powered by Google App Engine
This is Rietveld 408576698