Skip to content

Commit

Permalink
Merge pull request #108 from Ms2ger/document-body
Browse files Browse the repository at this point in the history
Fix the expectation for two document.body tests.
  • Loading branch information
jgraham committed May 10, 2013
2 parents 2690fca + 5f8b7dc commit 82f4d31
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions html/dom/documents/dom-tree-accessors/document.body-getter.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,17 @@
var doc = createDocument();
var html =
doc.appendChild(doc.createElementNS("http://example.org/test", "html"));
var b =
html.appendChild(doc.createElement("body"));
html.appendChild(doc.createElement("body"));
html.appendChild(doc.createElement("frameset"));
assert_equals(doc.body, b);
assert_equals(doc.body, null);
}, "Body followed by frameset inside a non-HTML html element");
test(function() {
var doc = createDocument();
var html =
doc.appendChild(doc.createElementNS("http://example.org/test", "html"));
var f =
html.appendChild(doc.createElement("frameset"));
html.appendChild(doc.createElement("frameset"));
html.appendChild(doc.createElement("body"));
assert_equals(doc.body, f);
assert_equals(doc.body, null);
}, "Frameset followed by body inside a non-HTML html element");
test(function() {
var doc = createDocument();
Expand Down

0 comments on commit 82f4d31

Please sign in to comment.