Pass | Element.attachShadow must create an instance of ShadowRoot for autonomous custom elements | Asserts runPass | assert_true(true)
at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow-custom-element.html:14:3) |
|
Pass | Element.attachShadow must create an instance of ShadowRoot for undefined autonomous custom elements | Asserts runPass | assert_true(true)
at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow-custom-element.html:18:3) |
|
Pass | Element.attachShadow for an autonomous custom element with disabledFeatures=["shadow"] should throw a NotSupportedError | Asserts runPass | assert_throws_dom("NotSupportedError", function "() => { element.attachShadow({mode: 'closed'}); }", "No definition, host")
at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow-custom-element.html:31:3) | Pass | assert_throws_dom("NotSupportedError", function "() => { element.attachShadow({mode: 'closed'}); }", "Definition, host")
at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow-custom-element.html:37:3) | Pass | assert_throws_dom("NotSupportedError", function "() => { document.createElement('shadow-disabled-element').attachShadow({mode: 'closed'}); }", "Definition, not a host")
at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow-custom-element.html:42:3) |
|
Pass | Element.attachShadow for a customized built-in element with disabledFeatures=["shadow"] should throw a NotSupportedError | Asserts runPass | assert_throws_dom("NotSupportedError", function "() => { element.attachShadow({mode: 'closed'}); }", "No definition, host.")
at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow-custom-element.html:59:3) | Pass | assert_throws_dom("NotSupportedError", function "() => { element.attachShadow({mode: 'closed'}); }", "Definition, host")
at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow-custom-element.html:66:3) | Pass | assert_throws_dom("NotSupportedError", function "() => { h2.attachShadow({mode: 'closed'}); }", "Definition, not a host")
at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow-custom-element.html:72:3) |
|
Pass | Element.attachShadow for a custom element with disabledFeatures=["SHADOW"] should not throw a NotSupportedError | Asserts runNo asserts ran |
Pass | Element.attachShadow must throw a NotSupportedError for customized built-in elements | Asserts runPass | assert_throws_dom("NotSupportedError", function "() => { document.createElement('input', {is: 'my-input'}).attachShadow({mode: "open"}); }")
at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow-custom-element.html:95:3) |
|