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

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

Issue 2675503002: [MD Bookmarks] Remove Multiple Selected Items. (Closed)
Patch Set: add test Created 3 years, 11 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/browser/resources/md_bookmarks/store.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ });
});
« no previous file with comments | « chrome/browser/resources/md_bookmarks/store.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698