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

Unified Diff: LayoutTests/fast/dom/TreeWalker/TreeWalker-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
Index: LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html
diff --git a/LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html b/LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html
index e89838692e011176b3445a1bb9674e1daf8875c5..7c1438320e472c83262bff8dec1cc106513e5b04 100644
--- a/LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html
+++ b/LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html
@@ -119,6 +119,14 @@ test(function ()
assert_false(walker.expandEntityReferences);
});
}, 'Test that the fourth argument (expandEntityReferences) is ignored.');
+
+test(function() {
+ var treeWalker = document.createTreeWalker(document.body, 42, null);
+ assert_equals(treeWalker.root, document.body);
+ assert_equals(treeWalker.currentNode, document.body);
+ assert_equals(treeWalker.whatToShow, 42);
+ assert_equals(treeWalker.filter, null);
+}, "Optional arguments to createTreeWalker should be optional (3 passed, null).");
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698