Summary

Harness status: OK

Found 12 tests

Details

ResultTest NameMessage
PassCheck the existence of ShadowRoot interface
Asserts run
Pass
assert_true(true, "\"ShadowRoot\" exists on window")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:16:5)
PassShadowRoot must inherit from DocumentFragment
Asserts run
Pass
assert_equals(object "[object DocumentFragment]", object "[object DocumentFragment]", "ShadowRoot must inherit from DocumentFragment")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:20:5)
PassShadowRoot must not be a constructor
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function () { new ShadowRoot(); }", "new ShadowRoot() must throw a TypeError")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:24:5)
PassShadowRoot.activeElement must return the focused element of the context object when shadow root is open.
Asserts run
Pass
assert_equals(null, null, "ShadowRoot.host must return null if an open shadow tree does not have a focused element")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:33:9)
Pass
assert_equals(Element node <input></input>, Element node <input></input>, "ShadowRoot.host must return the focused element of an open shadow tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:35:9)
Pass
assert_equals(null, null, "ShadowRoot.host must return null if an open shadow tree lost focus")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:37:9)
PassShadowRoot.activeElement must return the focused element of the context object when shadow root is closed.
Asserts run
Pass
assert_equals(null, null, "ShadowRoot.host must return null if an closed shadow tree does not have a focused element")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:33:9)
Pass
assert_equals(Element node <input></input>, Element node <input></input>, "ShadowRoot.host must return the focused element of an closed shadow tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:35:9)
Pass
assert_equals(null, null, "ShadowRoot.host must return null if an closed shadow tree lost focus")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:37:9)
PassShadowRoot.host must return the shadow host of the context object.
Asserts run
Pass
assert_equals(Element node <div></div>, Element node <div></div>, "ShadowRoot.host must return the shadow host of an open shadow tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:46:5)
Pass
assert_equals(Element node <div></div>, Element node <div></div>, "ShadowRoot.host must return the shadow host of a closed shadow tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:49:5)
PassShadowRoot.innerHTML must return the result of the HTML fragment serialization algorithm when shadow root is open.
Asserts run
Pass
assert_equals("", "", "ShadowRoot.innerHTML must be an empty string when the shadow root does not have any children")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:56:9)
Pass
assert_equals("hello", "hello", "ShadowRoot.innerHTML must serialize a text node child")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:59:9)
Pass
assert_equals("hello<span></span>", "hello<span></span>", "ShadowRoot.innerHTML must serialize a HTML element child")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:62:9)
PassShadowRoot.innerHTML must return the result of the HTML fragment serialization algorithm when shadow root is closed.
Asserts run
Pass
assert_equals("", "", "ShadowRoot.innerHTML must be an empty string when the shadow root does not have any children")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:56:9)
Pass
assert_equals("hello", "hello", "ShadowRoot.innerHTML must serialize a text node child")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:59:9)
Pass
assert_equals("hello<span></span>", "hello<span></span>", "ShadowRoot.innerHTML must serialize a HTML element child")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:62:9)
PassShadowRoot.innerHTML must replace all with the result of invoking the fragment parsing algorithm when shadow root is open.
Asserts run
Pass
assert_equals(1, 1, "ShadowRoot.innerHTML = \"hello\" must insert a single child (text node)")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:74:9)
Pass
assert_true(true, "The first child of the shadow root after ShadowRoot.innerHTML = \"hello\" must be a Text node")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:75:9)
Pass
assert_equals("hello", "hello", "The first Text node should contain the string \"hello\" after ShadowRoot.innerHTML = \"hello\"")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:76:9)
Pass
assert_equals(1, 1, "ShadowRoot.innerHTML = \"<b>hello</b>\" must insert a single child (b)")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:79:9)
Pass
assert_true(true, "The first child of the shadow root after ShadowRoot.innerHTML = \"<b>hello</b>\" must be a HTML element")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:80:9)
Pass
assert_equals("b", "b", "The local name of the shadow root's first child after ShadowRoot.innerHTML = \"<b>hello</b>\" must be \"b\"")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:81:9)
Pass
assert_equals("<b>hello</b>", "<b>hello</b>", "ShadowRoot.innerHTML must be \"<b>hello</b>\" after ShadowRoot.innerHTML = \"<b>hello</b>\"")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:82:9)
Pass
assert_equals(0, 0, "ShadowRoot.innerHTML = \"\" must remove all its children")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:85:9)
PassShadowRoot.innerHTML must replace all with the result of invoking the fragment parsing algorithm when shadow root is closed.
Asserts run
Pass
assert_equals(1, 1, "ShadowRoot.innerHTML = \"hello\" must insert a single child (text node)")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:74:9)
Pass
assert_true(true, "The first child of the shadow root after ShadowRoot.innerHTML = \"hello\" must be a Text node")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:75:9)
Pass
assert_equals("hello", "hello", "The first Text node should contain the string \"hello\" after ShadowRoot.innerHTML = \"hello\"")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:76:9)
Pass
assert_equals(1, 1, "ShadowRoot.innerHTML = \"<b>hello</b>\" must insert a single child (b)")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:79:9)
Pass
assert_true(true, "The first child of the shadow root after ShadowRoot.innerHTML = \"<b>hello</b>\" must be a HTML element")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:80:9)
Pass
assert_equals("b", "b", "The local name of the shadow root's first child after ShadowRoot.innerHTML = \"<b>hello</b>\" must be \"b\"")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:81:9)
Pass
assert_equals("<b>hello</b>", "<b>hello</b>", "ShadowRoot.innerHTML must be \"<b>hello</b>\" after ShadowRoot.innerHTML = \"<b>hello</b>\"")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:82:9)
Pass
assert_equals(0, 0, "ShadowRoot.innerHTML = \"\" must remove all its children")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:85:9)
PassShadowRoot.styleSheets must return a StyleSheetList sequence containing the shadow root style sheets when shadow root is open.
Asserts run
Pass
assert_equals(0, 0, "shadowRoot.styleSheets must be empty when the shadow root is not connected")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:98:9)
Pass
assert_equals(null, null, "Sheet should be null in a disconnected tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:100:9)
Pass
assert_equals(null, null, "Sheet should be null in a disconnected tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:101:9)
Pass
assert_equals(2, 2, "shadowRoot.styleSheets must contain two items when the shadow root has two style elements")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:104:9)
Pass
assert_equals(object "[object CSSStyleSheet]", object "[object CSSStyleSheet]", "shadowRoot.styleSheets[0] must be the first style element in the shadow root")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:105:9)
Pass
assert_equals(object "[object CSSStyleSheet]", object "[object CSSStyleSheet]", "shadowRoot.styleSheets[1] must be the second style element in the shadow root")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:106:9)
Pass
assert_equals(0, 0, "shadowRoot.styleSheets must be empty when the shadow root is not connected")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:109:9)
Pass
assert_equals(null, null, "Sheet should be null in a disconnected tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:110:9)
Pass
assert_equals(null, null, "Sheet should be null in a disconnected tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:111:9)
PassShadowRoot.styleSheets must return a StyleSheetList sequence containing the shadow root style sheets when shadow root is closed.
Asserts run
Pass
assert_equals(0, 0, "shadowRoot.styleSheets must be empty when the shadow root is not connected")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:98:9)
Pass
assert_equals(null, null, "Sheet should be null in a disconnected tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:100:9)
Pass
assert_equals(null, null, "Sheet should be null in a disconnected tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:101:9)
Pass
assert_equals(2, 2, "shadowRoot.styleSheets must contain two items when the shadow root has two style elements")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:104:9)
Pass
assert_equals(object "[object CSSStyleSheet]", object "[object CSSStyleSheet]", "shadowRoot.styleSheets[0] must be the first style element in the shadow root")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:105:9)
Pass
assert_equals(object "[object CSSStyleSheet]", object "[object CSSStyleSheet]", "shadowRoot.styleSheets[1] must be the second style element in the shadow root")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:106:9)
Pass
assert_equals(0, 0, "shadowRoot.styleSheets must be empty when the shadow root is not connected")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:109:9)
Pass
assert_equals(null, null, "Sheet should be null in a disconnected tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:110:9)
Pass
assert_equals(null, null, "Sheet should be null in a disconnected tree")
    at Test.<anonymous> ( /shadow-dom/ShadowRoot-interface.html:111:9)