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

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

Issue 2977523002: MD Bookmarks: Scroll and select items that are added to the main list (Closed)
Patch Set: Reformat json schema Created 3 years, 5 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/list_test.js
diff --git a/chrome/test/data/webui/md_bookmarks/list_test.js b/chrome/test/data/webui/md_bookmarks/list_test.js
index 755e1b624c40a9a867b865381fbe7d2465088703..1fb3993a0c515f427b31ed29cbae0d725896871a 100644
--- a/chrome/test/data/webui/md_bookmarks/list_test.js
+++ b/chrome/test/data/webui/md_bookmarks/list_test.js
@@ -70,6 +70,13 @@ suite('<bookmarks-list>', function() {
list.displayedIds_ = ['1', '3', '7', '5'];
assertDeepEquals(list.displayedIds_, list.displayedList_.map(n => n.id));
});
+
+ test('selects all valid IDs on highlight-items', function() {
+ list.fire('highlight-items', ['10', '1', '3', '9']);
+ assertEquals('select-items', store.lastAction.name);
+ assertEquals('1', store.lastAction.anchor);
+ assertDeepEquals(['1', '3'], store.lastAction.items);
+ });
});
suite('<bookmarks-list> integration test', function() {
« no previous file with comments | « chrome/test/data/webui/md_bookmarks/command_manager_test.js ('k') | chrome/test/data/webui/md_bookmarks/test_store.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698