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> |