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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/node-filter-use-counters.html

Issue 2840163002: DOM: NodeIterator.filter and TreeWalker.filter should return values which were specified to createN… (Closed)
Patch Set: Move ToV8() to ToV8ForCore.h, etc. Created 3 years, 8 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: third_party/WebKit/LayoutTests/fast/dom/node-filter-use-counters.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/node-filter-use-counters.html b/third_party/WebKit/LayoutTests/fast/dom/node-filter-use-counters.html
index 14a3ae1fe3a59f4223252baf31d3c9589b2e5b02..73854fbdac37d2e9f2e88ebd31f650ba50dd2056 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/node-filter-use-counters.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/node-filter-use-counters.html
@@ -14,8 +14,8 @@ test(function() {
filter.called = true;
};
- var iterator = document.createNodeIterator(document, 0, filter);
- iterator.filter.acceptNode(document);
+ var iterator = document.createNodeIterator(document, NodeFilter.SHOW_ALL, filter);
+ iterator.nextNode();
assert_true(filter.called);
}, 'NodeFilter UseCounter for callback function');
@@ -32,8 +32,8 @@ test(function() {
}
};
- var iterator = document.createNodeIterator(document, 0, filter);
- iterator.filter.acceptNode(document);
+ var iterator = document.createNodeIterator(document, NodeFilter.SHOW_ALL, filter);
+ iterator.nextNode();
assert_true(filter.called);
}, 'NodeFilter UseCounter for callback function');
</script>

Powered by Google App Engine
This is Rietveld 408576698