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

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

Issue 2668693007: [MD Bookmarks] Double Click (Closed)
Patch Set: change the loop and add tab changes Created 3 years, 10 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/store_test.js
diff --git a/chrome/test/data/webui/md_bookmarks/store_test.js b/chrome/test/data/webui/md_bookmarks/store_test.js
index 3f7470cf909a51deada4933263bbc4c6a1eaadf2..2212d0c0d0e9a222a1c0f6d507b9b53e70e17c92 100644
--- a/chrome/test/data/webui/md_bookmarks/store_test.js
+++ b/chrome/test/data/webui/md_bookmarks/store_test.js
@@ -154,6 +154,16 @@ suite('<bookmarks-store>', function() {
assertFalse(store.idToNodeMap_['3'].isSelectedFolder);
});
+ test('parent folder opens when descendant folder is selected', function() {
+ store.idToNodeMap_['0'].isOpen = false;
+ store.idToNodeMap_['1'].isOpen = false;
+ store.idToNodeMap_['3'].isOpen = false;
+ store.fire('selected-folder-changed', '3');
+ assertTrue(store.idToNodeMap_['0'].isOpen);
+ assertTrue(store.idToNodeMap_['1'].isOpen);
+ assertFalse(store.idToNodeMap_['3'].isOpen);
+ });
+
test('deleting a node updates the tree', function() {
removeChild(TEST_TREE, 1);
overrideBookmarksGetSubTree([TEST_TREE]);

Powered by Google App Engine
This is Rietveld 408576698