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

Unified Diff: LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html

Issue 366223006: createTreeWalker and createNodeIterator should deal with null NodeFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use fully qualified variable name Created 6 years, 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/NodeIterator/NodeIterator-basic-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html
diff --git a/LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html b/LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html
index 3852d1866ad1effe07357f1ee29329eea24226c4..735a54a023f0bed1b292c58a900f3a9b5c2baf89 100644
--- a/LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html
+++ b/LayoutTests/fast/dom/NodeIterator/NodeIterator-basic.html
@@ -193,6 +193,14 @@ test(function ()
testIteratorForwardAndBackward(iterator, expectedAll);
});
}, 'Test that the fourth argument (expandEntityReferences) is ignored.');
+
+test(function() {
+ var nodeIterator = document.createNodeIterator(document.body, 42, null);
+ assert_equals(nodeIterator.root, document.body);
+ assert_equals(nodeIterator.referenceNode, document.body);
+ assert_equals(nodeIterator.whatToShow, 42);
+ assert_equals(nodeIterator.filter, null);
+}, "Optional arguments to createNodeIterator should be optional (3 passed, null).");
</script>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/NodeIterator/NodeIterator-basic-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698