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

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

Issue 2733463002: MD Bookmarks: Add basic page features to new data-flow system (Closed)
Patch Set: calamity@ review 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
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 837841e299809e80939d84538e32b7b5f400dd2e..b024e2662cc438fcb33f6de44b8ff4fe5127003f 100644
--- a/chrome/test/data/webui/md_bookmarks/test_util.js
+++ b/chrome/test/data/webui/md_bookmarks/test_util.js
@@ -12,6 +12,13 @@ function replaceBody(element) {
}
/**
+ * Convert a tree of bookmark nodes into a normalized lookup table of nodes.
+ */
+function testTree(root) {
+ return bookmarks.util.normalizeNodes(root);
+}
+
+/**
* Initialize a tree for UI testing. This performs the same initialization as
* `setUpStore_` in <bookmarks-store>, but without the need for a store element
* in the test.

Powered by Google App Engine
This is Rietveld 408576698