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

Unified Diff: chrome/test/data/webui/md_history/history_list_test.js

Issue 2371363002: [MD History] Fix item selection when deleting via menu item. (Closed)
Patch Set: uglify, fix comment Created 4 years, 3 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_history/list_container.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_history/history_list_test.js
diff --git a/chrome/test/data/webui/md_history/history_list_test.js b/chrome/test/data/webui/md_history/history_list_test.js
index 2df6533405169c327f85a3a744d09bed6384e31d..6bf4ebcf11268bf8e2b172907958db21a9f8965c 100644
--- a/chrome/test/data/webui/md_history/history_list_test.js
+++ b/chrome/test/data/webui/md_history/history_list_test.js
@@ -410,9 +410,18 @@ cr.define('md_history.history_list_test', function() {
'https://www.google.com',
'https://en.wikipedia.org',
], element.historyData_.map(item => item.title));
+
+ // Deletion should deselect all.
+ assertDeepEquals(
+ [false, false, false],
+ items.slice(0, 3).map(i => i.selected));
+
done();
});
});
+
+ MockInteractions.tap(items[1].$.checkbox);
+ MockInteractions.tap(items[3].$.checkbox);
MockInteractions.tap(items[1].$['menu-button']);
app.$.history.$.sharedMenu.get();
MockInteractions.tap(app.$.history.$$('#menuRemoveButton'));
« no previous file with comments | « chrome/browser/resources/md_history/list_container.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698