Pass | Childless document | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:16:3) |
|
Pass | Childless html element | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:21:3) |
|
Pass | Body followed by frameset inside the html element | Asserts runPass | assert_equals(Element node <body></body>, Element node <body></body>)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:29:3) |
|
Pass | Frameset followed by body inside the html element | Asserts runPass | assert_equals(Element node <frameset></frameset>, Element node <frameset></frameset>)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:37:3) |
|
Pass | Body followed by frameset inside a non-HTML html element | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:45:3) |
|
Pass | Frameset followed by body inside a non-HTML html element | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:53:3) |
|
Pass | Non-HTML body followed by body inside the html element | Asserts runPass | assert_equals(Element node <body></body>, Element node <body></body>)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:61:3) |
|
Pass | Non-HTML frameset followed by body inside the html element | Asserts runPass | assert_equals(Element node <body></body>, Element node <body></body>)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:69:3) |
|
Pass | Body inside an x element followed by a body | Asserts runPass | assert_equals(Element node <body></body>, Element node <body></body>)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:77:3) |
|
Pass | Frameset inside an x element followed by a frameset | Asserts runPass | assert_equals(Element node <frameset></frameset>, Element node <frameset></frameset>)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:85:3) |
|
Pass | Body as the root node | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:92:3) |
|
Pass | Frameset as the root node | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:97:3) |
|
Pass | Body as the root node with a frameset child | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:103:3) |
|
Pass | Frameset as the root node with a body child | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:109:3) |
|
Pass | Non-HTML body as the root node | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:114:3) |
|
Pass | Non-HTML frameset as the root node | Asserts runPass | assert_equals(null, null)
at Test.<anonymous> ( /html/dom/documents/dom-tree-accessors/Document.body.html:119:3) |
|
Pass | existing document's body | Asserts runPass | 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) |
|
Pass | Setting document.body to a string. | Asserts runPass | 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) |
|
Pass | Setting document.body to a div element. | Asserts runPass | 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) |
|
Pass | Setting document.body when there's no root element. | Asserts runPass | 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) |
|
Pass | Setting document.body to a new body element. | Asserts runPass | 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) |
|
Pass | Setting document.body to a new frameset element. | Asserts runPass | 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) |
|
Pass | Setting document.body to a body will replace an existing frameset if there is one. | Asserts runPass | 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) |
|
Pass | Setting document.body to a frameset will replace an existing body if there is one. | Asserts runPass | 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) |
|
Pass | Setting document.body to a frameset will replace the first existing body/frameset. | Asserts runPass | 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) |
|
Pass | Setting document.body to a new body element when the root element is a test element. | Asserts runPass | 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) |
|