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

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

Issue 2869273011: [MD Bookmarks] Convert bookmark list to iron-list. (Closed)
Patch Set: add comment, fix closure, rebase 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
« no previous file with comments | « chrome/browser/resources/md_bookmarks/types.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ff6b2a3cb77eb217376b105163333dd523b6e614..99be398de8e8175cb947bc2d8876ff43927c5434 100644
--- a/chrome/test/data/webui/md_bookmarks/list_test.js
+++ b/chrome/test/data/webui/md_bookmarks/list_test.js
@@ -21,6 +21,10 @@ suite('<bookmarks-list>', function() {
bookmarks.Store.instance_ = store;
list = document.createElement('bookmarks-list');
+ list.style.height = '100%';
+ list.style.width = '100%';
+ list.style.position= 'absolute';
+
replaceBody(list);
Polymer.dom.flush();
});
@@ -55,4 +59,15 @@ suite('<bookmarks-list>', function() {
customClick(list);
assertEquals('deselect-items', store.lastAction.name);
});
+
+ test('adds, deletes, and moves update displayedList_', function() {
+ list.displayedIds_ = ['1', '7', '3', '5'];
+ assertDeepEquals(list.displayedIds_, list.displayedList_.map(n => n.id));
+
+ list.displayedIds_ = ['1', '3', '5'];
+ assertDeepEquals(list.displayedIds_, list.displayedList_.map(n => n.id));
+
+ list.displayedIds_ = ['1', '3', '7', '5'];
+ assertDeepEquals(list.displayedIds_, list.displayedList_.map(n => n.id));
+ });
});
« no previous file with comments | « chrome/browser/resources/md_bookmarks/types.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698