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

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

Issue 2888863002: [MD Bookmarks] Refine mouse selection (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/item_test.js
diff --git a/chrome/test/data/webui/md_bookmarks/item_test.js b/chrome/test/data/webui/md_bookmarks/item_test.js
index caddf52419b1b63dd8ea058b20c0638b927b9c66..e850d6556c2f2a9822ab235bad1141ab6b0ccd5c 100644
--- a/chrome/test/data/webui/md_bookmarks/item_test.js
+++ b/chrome/test/data/webui/md_bookmarks/item_test.js
@@ -45,7 +45,11 @@ suite('<bookmarks-item>', function() {
test('pressing the menu button selects the item', function() {
MockInteractions.tap(item.$$('.more-vert-button'));
assertDeepEquals(
- bookmarks.actions.selectItem('2', false, false, store.data),
+ bookmarks.actions.selectItem('2', store.data, {
+ clear: true,
+ range: false,
+ toggle: false,
+ }),
store.lastAction);
});
@@ -57,7 +61,11 @@ suite('<bookmarks-item>', function() {
item.isSelectedItem_ = false;
item.dispatchEvent(new MouseEvent('contextmenu'));
assertDeepEquals(
- bookmarks.actions.selectItem('2', false, false, store.data),
+ bookmarks.actions.selectItem('2', store.data, {
+ clear: true,
+ range: false,
+ toggle: false,
+ }),
store.lastAction);
});
« no previous file with comments | « chrome/test/data/webui/md_bookmarks/actions_test.js ('k') | chrome/test/data/webui/md_bookmarks/list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698