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

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

Issue 2885723002: [MD Bookmarks] Add keyboard navigation and selection to bookmark list. (Closed)
Patch Set: address comments Created 3 years, 7 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/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 f95592375c33f128b35cb2d9fc5a87b479f91281..a23c27ec08ea15f8ca3b27182a9b6b40876fe77b 100644
--- a/chrome/test/data/webui/md_bookmarks/reducers_test.js
+++ b/chrome/test/data/webui/md_bookmarks/reducers_test.js
@@ -98,6 +98,13 @@ suite('selection state', function() {
assertDeepEquals(['2', '3'], normalizeSet(selection.items));
});
+ test('update anchor', function() {
+ action = bookmarks.actions.updateAnchor('3');
+ selection = bookmarks.SelectionState.updateSelection(selection, action);
+
+ assertEquals('3', selection.anchor);
+ });
+
test('deselects items when they are deleted', function() {
var nodeMap = testTree(createFolder('0', [
createFolder(
« no previous file with comments | « chrome/test/data/webui/md_bookmarks/md_bookmarks_focus_test.js ('k') | third_party/polymer/v1_0/chromium.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698