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 65b6df947c99a4508f4b33c2f2bb9f0186c12778..dfb449fdb57ea797db8de52a9cbde85449503769 100644 |
--- a/LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html |
+++ b/LayoutTests/fast/dom/TreeWalker/TreeWalker-basic.html |
@@ -107,6 +107,18 @@ test(function () |
}, 'Walk over nodes.'); |
// FIXME: Add tests that use |whatToShow| argument and/or |filter| argument. |
+ |
+test(function () |
+{ |
+ var filter = function () { |
+ return NodeFilter.FILTER_ACCEPT; |
+ }; |
+ [true, false].forEach(function (expandEntityReferences) { |
+ var walker = document.createTreeWalker(createSampleDOM(), NodeFilter.SHOW_ALL, filter, expandEntityReferences); |
+ assert_true(walker instanceof TreeWalker); |
+ assert_false(walker.expandEntityReferences); |
+ }); |
+}, 'Test that the fourth argument (expandEntityReferences) is ignored.'); |
</script> |
</body> |
</html> |