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

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

Issue 106423002: Remove fourth argument to createNodeIterator/createTreeWalker (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: base files Created 7 years 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 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>

Powered by Google App Engine
This is Rietveld 408576698