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

Unified Diff: chrome/test/data/webui/md_bookmarks/test_util.js

Issue 2740863003: MD Bookmarks: Implement search and selection in new data flow system (Closed)
Patch Set: Review round 2 Created 3 years, 9 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
« no previous file with comments | « chrome/test/data/webui/md_bookmarks/sidebar_test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_bookmarks/test_util.js
diff --git a/chrome/test/data/webui/md_bookmarks/test_util.js b/chrome/test/data/webui/md_bookmarks/test_util.js
index 60dace21c45c5aca46423d1ec4c635b5891e5745..f8c4de2d656b03d18de65774c32b856db27c9f6c 100644
--- a/chrome/test/data/webui/md_bookmarks/test_util.js
+++ b/chrome/test/data/webui/md_bookmarks/test_util.js
@@ -12,10 +12,13 @@ function replaceBody(element) {
}
/**
- * Convert a tree of bookmark nodes into a normalized lookup table of nodes.
+ * Convert a list of top-level bookmark nodes into a normalized lookup table of
+ * nodes.
+ * @param {...BookmarkTreeNode} nodes
*/
-function testTree(root) {
- return bookmarks.util.normalizeNodes(root);
+function testTree(nodes) {
+ return bookmarks.util.normalizeNodes(
+ createFolder('0', Array.from(arguments)));
}
/**
« no previous file with comments | « chrome/test/data/webui/md_bookmarks/sidebar_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698