Summary

Harness status: OK

Found 6 tests

Details

ResultTest NameMessage
PassElement.attachShadow must create an instance of ShadowRoot for autonomous custom elements
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow-custom-element.html:14:3)
PassElement.attachShadow must create an instance of ShadowRoot for undefined autonomous custom elements
Asserts run
Pass
assert_true(true)
    at Test.<anonymous> ( /shadow-dom/Element-interface-attachShadow-custom-element.html:18:3)
PassElement.attachShadow for an autonomous custom element with disabledFeatures=["shadow"] should throw a NotSupportedError
Asserts run
Pass
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)
PassElement.attachShadow for a customized built-in element with disabledFeatures=["shadow"] should throw a NotSupportedError
Asserts run
Pass
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)
PassElement.attachShadow for a custom element with disabledFeatures=["SHADOW"] should not throw a NotSupportedError
Asserts runNo asserts ran
PassElement.attachShadow must throw a NotSupportedError for customized built-in elements
Asserts run
Pass
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)