Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: LayoutTests/fast/dom/node-iterator-with-doctype-root.html

Issue 22880019: [DOM4] Doctypes now always have a node document and can be moved across document boundaries (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Improve tests Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/node-iterator-with-doctype-root.html
diff --git a/LayoutTests/fast/dom/node-iterator-with-doctype-root.html b/LayoutTests/fast/dom/node-iterator-with-doctype-root.html
index 08b36eb7a3507cdada5956843cfb130917b2cb95..acb8b1ed169b5dbf78e3258ae028ee898ddc719b 100644
--- a/LayoutTests/fast/dom/node-iterator-with-doctype-root.html
+++ b/LayoutTests/fast/dom/node-iterator-with-doctype-root.html
@@ -7,7 +7,7 @@
var dt = document.implementation.createDocumentType("foo", "", "");
var iter = document.createNodeIterator(dt, NodeFilter.SHOW_ALL, null, true);
debug("NodeIterator rooted at a DocumentType node not yet associated with a document:");
-shouldBe('iter.referenceNode.ownerDocument', 'null');
+shouldBe('iter.referenceNode.ownerDocument', 'document');
shouldBe('iter.nextNode()', 'dt');
shouldBe('iter.nextNode()', 'null');
shouldBe('iter.previousNode()', 'dt');

Powered by Google App Engine
This is Rietveld 408576698