mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 1e4fe87a7f01c0b5c614c8f601ffa68b4a00662a
This commit is contained in:
parent
4c3f1756da
commit
432648745e
164 changed files with 8354 additions and 595 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue