Summary

Harness status: OK

Found 8 tests

Details

ResultTest NameMessage
Passxshadow0 is not focusable without tabindex.
Asserts run
Pass
assert_equals("BODY", "BODY")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:51:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:52:5)
Passxshadow1 becomes focusable with tabindex.
Asserts run
Pass
assert_equals("xshadow1", "xshadow1")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:57:5)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:58:5)
Passon focus(), focusable xshadow2 with delegatesFocus=true delegates focus into its inner element.
Asserts run
Pass
assert_equals("xshadow2", "xshadow2")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:63:5)
Pass
assert_equals("one", "one")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:64:5)
Passif an element within shadow is focused, focusing on shadow host should not slide focus to its inner element.
Asserts run
Pass
assert_equals("xshadow2", "xshadow2")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:69:5)
Pass
assert_equals("two", "two")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:70:5)
Passxshadow2.focus() shouldn't move focus to #one when its inner element is already focused.
Asserts run
Pass
assert_equals("xshadow2", "xshadow2")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:75:5)
Pass
assert_equals("two", "two")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:76:5)
Passfocus() inside shadow DOM should not focus its shadow host, nor focusable siblings.
Asserts run
Pass
assert_equals("input0", "input0")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:85:5)
Pass
assert_equals("input0", "input0")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:87:5)
PassIf any element including shadow host is not focusable, focus doesn't change.
Asserts run
Pass
assert_equals("input0", "input0")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:92:5)
PassIf no element is focusable within a delegatesFocus shadow root, the host can't get focus regardless of host's tabIndex.
Asserts run
Pass
assert_equals("xshadow4", "xshadow4")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:97:5)
Pass
assert_equals("xshadow4", "xshadow4")
    at Test.<anonymous> ( /shadow-dom/focus/focus-method-with-delegatesFocus.html:99:5)