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

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

Issue 2888863002: [MD Bookmarks] Refine mouse selection (Closed)
Patch Set: 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 4d29419044d668050da7898479740a369c90ae50..2725d8831ce0f8c995959e1a4eee81eabb9c683a 100644
--- a/chrome/test/data/webui/md_bookmarks/item_test.js
+++ b/chrome/test/data/webui/md_bookmarks/item_test.js
@@ -45,7 +45,12 @@ 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, {
+ add: false,
+ range: false,
+ toggle: false,
+ updateAnchor: true,
+ }),
store.lastAction);
});
@@ -57,7 +62,12 @@ 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, {
+ add: false,
+ range: false,
+ toggle: false,
+ updateAnchor: true,
+ }),
store.lastAction);
});
});

Powered by Google App Engine
This is Rietveld 408576698