Update web-platform-tests to revision 1e4fe87a7f01c0b5c614c8f601ffa68b4a00662a

This commit is contained in:
WPT Sync Bot 2018-02-13 20:15:58 -05:00
parent 4c3f1756da
commit 432648745e
164 changed files with 8354 additions and 595 deletions

View file

@ -216,4 +216,12 @@ test(function() {
assert_equals(f2.nextSibling, f1, "New frameset should have replaced the body");
}, "Setting document.body to a frameset will replace the first existing body/frameset.");
test(function() {
var doc = createDocument();
doc.appendChild(doc.createElement("test"));
var new_body = doc.createElement("body");
doc.body = new_body;
assert_equals(doc.documentElement.firstChild, new_body, "new_body should be inserted");
assert_equals(doc.body, null, "Getter should return null when the root is not html");
}, "Setting document.body to a new body element when the root element is a test element.");
</script>