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

Unified Diff: LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus-expected.txt

Issue 1177673004: Implement ShadowRoot.delegatesFocus 3/4 (Slide focus on focus() method) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus.html ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus-expected.txt
diff --git a/LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus-expected.txt b/LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5b7c4869061050441c872eb7aff4bf05608711cc
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus-expected.txt
@@ -0,0 +1,27 @@
+xshadow0 is not focusable without tabindex.
+PASS document.activeElement.tagName is "BODY"
+PASS xshadow0.shadowRoot.activeElement is null
+xshadow1 becomes focusable with tabindex.
+PASS document.activeElement.id is "xshadow1"
+PASS xshadow1.shadowRoot.activeElement is null
+on focus(), focusable xshadow2 with delegatesFocus=true delegates focus into its inner element.
+PASS document.activeElement.id is "xshadow2"
+PASS xshadow2.shadowRoot.activeElement.id is "one"
+if an element within shadow is focused, focusing on shadow host should not slide focus to its inner element.
+PASS document.activeElement.id is "xshadow2"
+PASS xshadow2.shadowRoot.activeElement.id is "two"
+xshadow2.focus() shouldn't move focus to #one when its inner element is already focused.
+PASS document.activeElement.id is "xshadow2"
+PASS xshadow2.shadowRoot.activeElement.id is "two"
+focus() inside shadow DOM should not focus its shadow host, nor focusable siblings.
+PASS document.activeElement.id is "input0"
+PASS document.activeElement.id is "input0"
+If any element including shadow host is not focusable, focus doesn't change.
+PASS document.activeElement.id is "input0"
+If no element is focusable within shadow root, but the shadow host is focusable, then the host gets focus regardless of delegatesFocus.
+PASS document.activeElement.id is "xshadow4"
+PASS document.activeElement.id is "xshadow5"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus.html ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698