hello world

Summary

Harness status: OK

Found 5 tests

Details

ResultTest NameMessage
PassFocus should not be restored if the currently focused element is not inside the dialog.
Asserts run
Pass
assert_equals(Element node <button id="b2">button 2</button>, Element node <button id="b2">button 2</button>)
    at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/dialog-focus-previous-outside.html:40:3)
PassFocus restore should not occur when the focused element is in a shadowroot outside of the dialog.
Asserts run
Pass
assert_equals(Element node <div id="host">    </div>, Element node <div id="host">    </div>, "document.activeElement should point at the shadow host.")
    at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/dialog-focus-previous-outside.html:49:3)
Pass
assert_equals(Element node <button>button in shadowroot outside dialog</button>, Element node <button>button in shadowroot outside dialog</button>, "The button in the shadowroot should remain focused.")
    at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/dialog-focus-previous-outside.html:50:3)
PassFocus restore should occur when the focused element is in a shadowroot inside the dialog.
Asserts run
Pass
assert_equals(Element node <button id="b2">button 2</button>, Element node <button id="b2">button 2</button>)
    at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/dialog-focus-previous-outside.html:59:3)
PassFocus restore should occur when the focused element is slotted into a dialog.
Asserts run
Pass
assert_equals(Element node <button id="b2">button 2</button>, Element node <button id="b2">button 2</button>)
    at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/dialog-focus-previous-outside.html:68:3)
PassFocus restore should always occur for modal dialogs.
Asserts run
Pass
assert_equals(Element node <body><button id="b1">button 1</button> <button id="b2">b..., Element node <body><button id="b1">button 1</button> <button id="b2">b..., "Focus should return to the body when calling dialog.blur().")
    at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/dialog-focus-previous-outside.html:76:3)
Pass
assert_equals(Element node <button id="b1">button 1</button>, Element node <button id="b1">button 1</button>, "Focus should be restored to the previously focused element.")
    at Test.<anonymous> ( /html/semantics/interactive-elements/the-dialog-element/dialog-focus-previous-outside.html:79:3)