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

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

Issue 2820153003: [MD Bookmarks] Add keyboard navigation to sidebar. (Closed)
Patch Set: address comments 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
« no previous file with comments | « chrome/test/data/webui/BUILD.gn ('k') | chrome/test/data/webui/md_bookmarks/folder_node_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_bookmarks/dnd_manager_test.js
diff --git a/chrome/test/data/webui/md_bookmarks/dnd_manager_test.js b/chrome/test/data/webui/md_bookmarks/dnd_manager_test.js
index 15f6f9a0d38e45ab8a8c3860be95e8d2fbfaa8d9..2c373334b7acca39884fb677ab14ec2bdd1e1ac3 100644
--- a/chrome/test/data/webui/md_bookmarks/dnd_manager_test.js
+++ b/chrome/test/data/webui/md_bookmarks/dnd_manager_test.js
@@ -18,16 +18,7 @@ suite('drag and drop', function() {
};
function getFolderNode(id) {
- var nodes = [rootFolderNode];
- var node;
- while (nodes.length) {
- node = nodes.pop();
- if (node.itemId == id)
- return node;
-
- node.root.querySelectorAll('bookmarks-folder-node')
- .forEach((x) => {nodes.unshift(x)});
- }
+ return findFolderNode(rootFolderNode, id);
}
function getListItem(id) {
« no previous file with comments | « chrome/test/data/webui/BUILD.gn ('k') | chrome/test/data/webui/md_bookmarks/folder_node_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698