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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/focus-method-with-delegatesFocus-expected.txt

Issue 1774113002: Move Shadow DOM V1 tests from fast/dom/shadow to shadow-dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 xshadow0 is not focusable without tabindex.
2 PASS document.activeElement.tagName is "BODY"
3 PASS xshadow0.shadowRoot.activeElement is null
4 xshadow1 becomes focusable with tabindex.
5 PASS document.activeElement.id is "xshadow1"
6 PASS xshadow1.shadowRoot.activeElement is null
7 on focus(), focusable xshadow2 with delegatesFocus=true delegates focus into its inner element.
8 PASS document.activeElement.id is "xshadow2"
9 PASS xshadow2.shadowRoot.activeElement.id is "one"
10 if an element within shadow is focused, focusing on shadow host should not slide focus to its inner element.
11 PASS document.activeElement.id is "xshadow2"
12 PASS xshadow2.shadowRoot.activeElement.id is "two"
13 xshadow2.focus() shouldn't move focus to #one when its inner element is already focused.
14 PASS document.activeElement.id is "xshadow2"
15 PASS xshadow2.shadowRoot.activeElement.id is "two"
16 focus() inside shadow DOM should not focus its shadow host, nor focusable siblin gs.
17 PASS document.activeElement.id is "input0"
18 PASS document.activeElement.id is "input0"
19 If any element including shadow host is not focusable, focus doesn't change.
20 PASS document.activeElement.id is "input0"
21 If no element is focusable within shadow root, but the shadow host is focusable, then the host gets focus regardless of delegatesFocus.
22 PASS document.activeElement.id is "xshadow4"
23 PASS document.activeElement.id is "xshadow5"
24 PASS successfullyParsed is true
25
26 TEST COMPLETE
27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698