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

Side by Side Diff: chrome/test/data/webui/md_bookmarks/list_test.js

Issue 2777503002: [MD Bookmarks] Deselect items when clicking outside the bookmark card. (Closed)
Patch Set: rebase Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 suite('<bookmarks-list>', function() { 5 suite('<bookmarks-list>', function() {
6 var list; 6 var list;
7 var store; 7 var store;
8 8
9 setup(function() { 9 setup(function() {
10 store = new bookmarks.TestStore({ 10 store = new bookmarks.TestStore({
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 assertDeepEquals(['1'], store.lastAction.items); 73 assertDeepEquals(['1'], store.lastAction.items);
74 74
75 // Anchor item doesn't exist: 75 // Anchor item doesn't exist:
76 store.data.selection.anchor = '42'; 76 store.data.selection.anchor = '42';
77 77
78 customClick(items[1], {shiftKey: true}); 78 customClick(items[1], {shiftKey: true});
79 79
80 assertEquals('3', store.lastAction.anchor); 80 assertEquals('3', store.lastAction.anchor);
81 assertDeepEquals(['3'], store.lastAction.items); 81 assertDeepEquals(['3'], store.lastAction.items);
82 }); 82 });
83
84 test('deselects items on click outside of card', function() {
85 customClick(list);
86 assertEquals('deselect-items', store.lastAction.name);
87 });
83 }); 88 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_bookmarks/reducers.js ('k') | chrome/test/data/webui/md_bookmarks/reducers_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698