Element-interface-attachShadow.html

FAILExpected4 of 6 subtests pass386 ms

Details

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

Subtests

StatusSubtestMessage
FAILCheck the existence of Element.attachShadow
assert_true: Element.prototype.attachShadow must exist expected true got false
assert_true: Element.prototype.attachShadow must exist expected true got false
PASSNodes other than Element should not have attachShadow
PASSElement.attachShadow must throw a TypeError if mode is not "open" or "closed"
PASSElement.attachShadow must create an instance of ShadowRoot
PASSElement.attachShadow must throw a NotSupportedError if the context object already hosts a shadow tree
FAILElement.attachShadow must throw a NotSupportedError for non-safelisted elements
assert_throws_dom: Calling attachShadow({mode: "open"}) on a element must throw function "function () { document.createElement(elementName).attachShadow({mode: "open"}); }" did not…
assert_throws_dom: Calling attachShadow({mode: "open"}) on a element must throw function "function () { document.createElement(elementName).attachShadow({mode: "open"}); }" did not…