Summary

Harness status: OK

Found 26 tests

Details

ResultTest NameMessage
PassChildless document
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:16:3)
PassChildless html element
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:21:3)
PassBody followed by frameset inside the html element
Asserts run
Pass
assert_equals(Element node <body></body>, Element node <body></body>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:29:3)
PassFrameset followed by body inside the html element
Asserts run
Pass
assert_equals(Element node <frameset></frameset>, Element node <frameset></frameset>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:37:3)
PassBody followed by frameset inside a non-HTML html element
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:45:3)
PassFrameset followed by body inside a non-HTML html element
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:53:3)
PassNon-HTML body followed by body inside the html element
Asserts run
Pass
assert_equals(Element node <body></body>, Element node <body></body>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:61:3)
PassNon-HTML frameset followed by body inside the html element
Asserts run
Pass
assert_equals(Element node <body></body>, Element node <body></body>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:69:3)
PassBody inside an x element followed by a body
Asserts run
Pass
assert_equals(Element node <body></body>, Element node <body></body>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:77:3)
PassFrameset inside an x element followed by a frameset
Asserts run
Pass
assert_equals(Element node <frameset></frameset>, Element node <frameset></frameset>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:85:3)
PassBody as the root node
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:92:3)
PassFrameset as the root node
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:97:3)
PassBody as the root node with a frameset child
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:103:3)
PassFrameset as the root node with a body child
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:109:3)
PassNon-HTML body as the root node
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:114:3)
PassNon-HTML frameset as the root node
Asserts run
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:119:3)
Passexisting document's body
Asserts run
Pass
assert_not_equals(Element node <body><div id="log">Running, 16 complete, 1 remain</div> ..., null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:123:3)
Pass
assert_true(true, "should be HTMLBodyElement")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:124:3)
Pass
assert_equals("BODY", "BODY")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:125:3)
PassSetting document.body to a string.
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     document.body = "text"   }")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:131:3)
Pass
assert_equals(Element node <body><div id="log">Running, 17 complete, 1 remain</div> ..., Element node <body><div id="log">Running, 17 complete, 1 remain</div> ...)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:134:3)
PassSetting document.body to a div element.
Asserts run
Pass
assert_throws_dom("HierarchyRequestError", function "function() {     document.body = document.createElement("div")   }")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:137:3)
Pass
assert_equals(Element node <body><div id="log">Running, 18 complete, 1 remain</div> ..., Element node <body><div id="log">Running, 18 complete, 1 remain</div> ...)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:140:3)
PassSetting document.body when there's no root element.
Asserts run
Pass
assert_throws_dom("HierarchyRequestError", function "function() {     doc.body = doc.createElement("body")   }")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:144:3)
Pass
assert_equals(null, null)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:147:3)
PassSetting document.body to a new body element.
Asserts run
Pass
assert_true(true, "should be HTMLBodyElement")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:153:3)
Pass
assert_equals("BODY", "BODY")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:154:3)
Pass
assert_equals(Element node <body></body>, Element node <body></body>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:157:3)
PassSetting document.body to a new frameset element.
Asserts run
Pass
assert_true(true, "should be HTMLFrameSetElement")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:163:3)
Pass
assert_equals("FRAMESET", "FRAMESET")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:164:3)
Pass
assert_equals(Element node <frameset></frameset>, Element node <frameset></frameset>, "test6-3, append frameset to a new document")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:167:3)
PassSetting document.body to a body will replace an existing frameset if there is one.
Asserts run
Pass
assert_equals(Element node <frameset></frameset>, Element node <frameset></frameset>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:175:3)
Pass
assert_equals(null, null, "Frameset should have been removed from the tree")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:180:3)
Pass
assert_equals(Element node <body></body>, Element node <body></body>, "Body should be the new doc.body")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:182:3)
PassSetting document.body to a frameset will replace an existing body if there is one.
Asserts run
Pass
assert_equals(Element node <body></body>, Element node <body></body>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:190:3)
Pass
assert_equals(null, null, "Body should have been removed from the tree")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:195:3)
Pass
assert_equals(Element node <frameset></frameset>, Element node <frameset></frameset>, "Frameset should be the new doc.body")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:197:3)
PassSetting document.body to a frameset will replace the first existing body/frameset.
Asserts run
Pass
assert_equals(Element node <body></body>, Element node <body></body>)
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:206:3)
Pass
assert_equals(null, null, "Body should have been removed from the tree")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:211:3)
Pass
assert_equals(Element node <html><frameset></frameset><frameset></frameset></html>, Element node <html><frameset></frameset><frameset></frameset></html>, "Frameset following body should still be in the tree.")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:213:3)
Pass
assert_equals(Element node <frameset></frameset>, Element node <frameset></frameset>, "New frameset should be the new doc.body")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:215:3)
Pass
assert_equals(Element node <frameset></frameset>, Element node <frameset></frameset>, "New frameset should have replaced the body")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:216:3)
PassSetting document.body to a new body element when the root element is a test element.
Asserts run
Pass
assert_equals(Element node <body></body>, Element node <body></body>, "new_body should be inserted")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:224:3)
Pass
assert_equals(null, null, "Getter should return null when the root is not html")
    at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:225:3)