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

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

Issue 2777503002: [MD Bookmarks] Deselect items when clicking outside the bookmark card. (Closed)
Patch Set: rebase Created 3 years, 9 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/md_bookmarks/list_test.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/reducers_test.js
diff --git a/chrome/test/data/webui/md_bookmarks/reducers_test.js b/chrome/test/data/webui/md_bookmarks/reducers_test.js
index 6e9c3dec69b29dcfc83b73d29710837b46e85e79..5054a8511c11b1211777d0e799b6617d08f2a7e3 100644
--- a/chrome/test/data/webui/md_bookmarks/reducers_test.js
+++ b/chrome/test/data/webui/md_bookmarks/reducers_test.js
@@ -78,6 +78,15 @@ suite('selection state', function() {
state = bookmarks.SelectionState.updateSelection(state, action);
assertDeepEquals({}, state.items);
});
+
+ test('deselect items', function() {
+ action = select(['1', '2', '3'], '3', false);
+ state = bookmarks.SelectionState.updateSelection(state, action);
+
+ action = bookmarks.actions.deselectItems();
+ state = bookmarks.SelectionState.updateSelection(state, action);
+ assertDeepEquals({}, state.items);
+ });
});
suite('closed folder state', function() {
« no previous file with comments | « chrome/test/data/webui/md_bookmarks/list_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698