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]); |