Summary

Harness status: OK

Found 4 tests

Details

ResultTest NameMessage
PasscloneNode on a shadow root in open mode must throw a NotSupportedError
Asserts run
Pass
assert_throws_dom("NotSupportedError", function "function () {             var element = document.createElement('div');             var shadowRoot = element.attachShadow({mode: mode});             shadowRoot.cloneNode(false);         }", "cloneNode(false) on a shadow root in open mode must throw a NotSupportedError")
    at Test.<anonymous> ( /shadow-dom/Node-prototype-cloneNode.html:17:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             var element = document.createElement('div');             var shadowRoot = element.attachShadow({mode: mode});             shadowRoot.cloneNode(true);         }", "cloneNode(true) on a closed shadow root must throw a NotSupportedError")
    at Test.<anonymous> ( /shadow-dom/Node-prototype-cloneNode.html:23:9)
PasscloneNode on a shadow root in closed mode must throw a NotSupportedError
Asserts run
Pass
assert_throws_dom("NotSupportedError", function "function () {             var element = document.createElement('div');             var shadowRoot = element.attachShadow({mode: mode});             shadowRoot.cloneNode(false);         }", "cloneNode(false) on a shadow root in closed mode must throw a NotSupportedError")
    at Test.<anonymous> ( /shadow-dom/Node-prototype-cloneNode.html:17:9)
Pass
assert_throws_dom("NotSupportedError", function "function () {             var element = document.createElement('div');             var shadowRoot = element.attachShadow({mode: mode});             shadowRoot.cloneNode(true);         }", "cloneNode(true) on a closed shadow root must throw a NotSupportedError")
    at Test.<anonymous> ( /shadow-dom/Node-prototype-cloneNode.html:23:9)
PasscloneNode on an element with an open shadow root should not clone its shadow root
Asserts run
Pass
assert_equals(null, null, "cloneNode(false) on an element with an open shadow root should not clone its shadow root")
    at Test.<anonymous> ( /shadow-dom/Node-prototype-cloneNode.html:39:5)
Pass
assert_equals(null, null, "cloneNode(true) on an element with an open shadow root should not clone its shadow root")
    at Test.<anonymous> ( /shadow-dom/Node-prototype-cloneNode.html:40:5)
PasscloneNode on an element with a closed shadow root should not clone its shadow root
Asserts run
Pass
assert_true(true, "An element returned by cloneNode(false) on an element with a closed shadow root should allow attachShadow")
    at Test.<anonymous> ( /shadow-dom/Node-prototype-cloneNode.html:47:5)
Pass
assert_true(true, "An element returned by cloneNode(true) on an element with a closed shadow root should allow attachShadow")
    at Test.<anonymous> ( /shadow-dom/Node-prototype-cloneNode.html:50:5)