| 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..8073dbb19f950de9db1aa14886cfec2b1d122796 100644
|
| --- a/chrome/test/data/webui/md_bookmarks/test_util.js
|
| +++ b/chrome/test/data/webui/md_bookmarks/test_util.js
|
| @@ -12,17 +12,10 @@ function replaceBody(element) {
|
| }
|
|
|
| /**
|
| - * 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.
|
| - * @param {BookmarkTreeNode} rootNode
|
| + * Convert a tree of bookmark nodes into a normalized lookup table of nodes.
|
| */
|
| -function setupTreeForUITests(rootNode){
|
| - if (!rootNode.path)
|
| - rootNode.path = 'rootNode';
|
| -
|
| - BookmarksStore.generatePaths(rootNode, 0);
|
| - BookmarksStore.initNodes(rootNode);
|
| +function testTree(root) {
|
| + return bookmarks.util.normalizeNodes(root);
|
| }
|
|
|
| /**
|
| @@ -44,7 +37,6 @@ function createFolder(id, children, config) {
|
| }
|
| if (children.length) {
|
| for (var i = 0; i < children.length; i++) {
|
| - children[i].index = i;
|
| children[i].parentId = newFolder.id;
|
| }
|
| }
|
|
|