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 2b8d96eeaa01709df2bec3a31bf8df24f7b1bdd7..679d8285a237c63c25068aebc8cc4baf7fe069e5 100644 |
--- a/chrome/test/data/webui/md_bookmarks/store_test.js |
+++ b/chrome/test/data/webui/md_bookmarks/store_test.js |
@@ -503,4 +503,20 @@ suite('<bookmarks-store>', function() { |
store.displayedList.map(i => i.isSelectedItem)); |
assertEquals(2, store.anchorIndex_); |
}); |
+ |
+ test('deleting multiple selected items', function() { |
+ var deleteCount = 0; |
+ chrome.bookmarks.removeTree = function() { |
+ deleteCount++; |
+ }; |
+ chrome.bookmarks.remove = function() { |
+ deleteCount++; |
+ }; |
+ |
+ store.fire('select-item', {item: store.displayedList[0]}); |
+ store.fire( |
+ 'select-item', {item: store.displayedList[2], add: true, range: false}); |
+ store.fire('remove-item', store.displayedList[2]); |
+ assertEquals(2, deleteCount); |
+ }); |
}); |