Pass | cloneNode on a shadow root in open mode must throw a NotSupportedError | Asserts runPass | 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) |
|
Pass | cloneNode on a shadow root in closed mode must throw a NotSupportedError | Asserts runPass | 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) |
|
Pass | cloneNode on an element with an open shadow root should not clone its shadow root | Asserts runPass | 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) |
|
Pass | cloneNode on an element with a closed shadow root should not clone its shadow root | Asserts runPass | 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) |
|