Element-interface-attachShadow-custom-element.html

FAILExpected3 of 6 subtests pass434 ms

Details

Test
/shadow-dom/Element-interface-attachShadow-custom-element.html
Harness
OK

Subtests

StatusSubtestMessage
PASSElement.attachShadow must create an instance of ShadowRoot for autonomous custom elements
PASSElement.attachShadow must create an instance of ShadowRoot for undefined autonomous custom elements
FAILElement.attachShadow for an autonomous custom element with disabledFeatures=["shadow"] should throw a NotSupportedError
assert_throws_dom: Definition, not a host function "() => { document.createElement('shadow-disabled-element').attachShadow({mode: 'closed'}); }" did not throw
assert_throws_dom: Definition, not a host function "() => { document.createElement('shadow-disabled-element').attachShadow({mode: 'closed'}); }" did not throw
FAILElement.attachShadow for a customized built-in element with disabledFeatures=["shadow"] should throw a NotSupportedError
assert_throws_dom: Definition, not a host function "() => { h2.attachShadow({mode: 'closed'}); }" did not throw
assert_throws_dom: Definition, not a host function "() => { h2.attachShadow({mode: 'closed'}); }" did not throw
PASSElement.attachShadow for a custom element with disabledFeatures=["SHADOW"] should not throw a NotSupportedError
FAILElement.attachShadow must throw a NotSupportedError for customized built-in elements
assert_throws_dom: function "() => { document.createElement('input', {is: 'my-input'}).attachShadow({mode: "open"}); }" did not throw
assert_throws_dom: function "() => { document.createElement('input', {is: 'my-input'}).attachShadow({mode: "open"}); }" did not throw