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

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

Issue 1174893002: Implement ShadowRoot.delegatesFocus 1/4 (focus navigation) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix for nit review comment 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
Index: LayoutTests/fast/dom/shadow/focus-navigation-with-delegatesFocus-expected.txt
diff --git a/LayoutTests/fast/dom/shadow/focus-navigation-with-delegatesFocus-expected.txt b/LayoutTests/fast/dom/shadow/focus-navigation-with-delegatesFocus-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e11f9151fe2f2f16d5a0c3fa761eb71989c2de7a
--- /dev/null
+++ b/LayoutTests/fast/dom/shadow/focus-navigation-with-delegatesFocus-expected.txt
@@ -0,0 +1,105 @@
+This tests TAB focus navigation with delegatesFocus flag on shadow hosts
+
+Testing shadow host with possible combinations of tabindex and delegatesFocus
+(1/8) Testing tab navigation order without tabindex and delegatesFocus=false
+PASS hostDiv.shadowRoot.delegatesFocus is false
+PASS hostDiv.tabIndex is -1
+Should move from input-before to host-div/inner-input in forward
+PASS
+Should move from host-div/inner-input to input-after in forward
+PASS
+Should move from input-after to host-div/inner-input in backward
+PASS
+Should move from host-div/inner-input to input-before in backward
+PASS
+(2/8) Testing tab navigation order without tabindex and delegatesFocus=true
+PASS hostDiv.shadowRoot.delegatesFocus is true
+PASS hostDiv.tabIndex is 0
+Should move from input-before to host-div/inner-input in forward
+PASS
+Should move from host-div/inner-input to input-after in forward
+PASS
+Should move from input-after to host-div/inner-input in backward
+PASS
+Should move from host-div/inner-input to input-before in backward
+PASS
+(3/8) Testing tab navigation order with tabindex=0 and delegatesFocus=false
+PASS hostDiv.shadowRoot.delegatesFocus is false
+PASS hostDiv.getAttribute("tabindex") is "0"
+Should move from input-before to host-div in forward
+PASS
+Should move from host-div to host-div/inner-input in forward
+PASS
+Should move from host-div/inner-input to input-after in forward
+PASS
+Should move from input-after to host-div/inner-input in backward
+PASS
+Should move from host-div/inner-input to host-div in backward
+PASS
+Should move from host-div to input-before in backward
+PASS
+(4/8)Testing tab navigation order with tabindex=0 and delegatesFocus=true
+PASS hostDiv.shadowRoot.delegatesFocus is true
+PASS hostDiv.getAttribute("tabindex") is "0"
+Should move from input-before to host-div/inner-input in forward
+PASS
+Should move from host-div/inner-input to input-after in forward
+PASS
+Should move from input-after to host-div/inner-input in backward
+PASS
+Should move from host-div/inner-input to input-before in backward
+PASS
+(5/8) Testing tab navigation order with tabindex=-1 and delegatesFocus=false
+PASS hostDiv.shadowRoot.delegatesFocus is false
+PASS hostDiv.getAttribute("tabindex") is "-1"
+Should move from input-before to host-div/inner-input in forward
+PASS
+Should move from host-div/inner-input to input-after in forward
+PASS
+Should move from input-after to host-div/inner-input in backward
+PASS
+Should move from host-div/inner-input to input-before in backward
+PASS
+(6/8) Testing tab navigation order with tabindex=-1 and delegatesFocus=true
+PASS hostDiv.shadowRoot.delegatesFocus is true
+PASS hostDiv.getAttribute("tabindex") is "-1"
+Should move from input-before to host-div/inner-input in forward
+PASS
+Should move from host-div/inner-input to input-after in forward
+PASS
+Should move from input-after to host-div/inner-input in backward
+PASS
+Should move from host-div/inner-input to input-before in backward
+PASS
+(7/8) Testing tab navigation order with tabindex=1 and delegatesFocus=false
+PASS hostDiv.shadowRoot.delegatesFocus is false
+PASS hostDiv.getAttribute("tabindex") is "1"
+Should move from input-before to input-after in forward
+PASS
+Should move from input-after to host-div in forward
+PASS
+Should move from host-div to host-div/inner-input in forward
+PASS
+Should move from host-div/inner-input to host-div in backward
+PASS
+Should move from host-div to input-after in backward
+PASS
+Should move from input-after to input-before in backward
+PASS
+(8/8) Testing tab navigation order with tabindex=1 and delegatesFocus=true
+PASS hostDiv.shadowRoot.delegatesFocus is true
+PASS hostDiv.getAttribute("tabindex") is "1"
+Should move from input-before to input-after in forward
+PASS
+Should move from input-after to host-div/inner-input in forward
+PASS
+Should move from host-div/inner-input to input-after in backward
+PASS
+Should move from input-after to input-before in backward
+PASS
+Test finished.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
+

Powered by Google App Engine
This is Rietveld 408576698