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

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

Issue 2800603002: MD WebUI: Pull 'X selected' toolbar overlay from History into shared element (Closed)
Patch Set: dbeam review comments Created 3 years, 8 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_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 41b2382f794e0e987605b038ef786893e75f8acf..5a51a9a4f7437e9704c6f764df802d329d51fc7c 100644
--- a/chrome/test/data/webui/md_history/history_list_test.js
+++ b/chrome/test/data/webui/md_history/history_list_test.js
@@ -46,7 +46,7 @@ suite('<history-list>', function() {
assertDeepEquals([true], element.historyData_.map(i => i.selected));
return PolymerTest.flushTasks();
}).then(function() {
- MockInteractions.tap(app.$.toolbar.$$('#delete-button'));
+ toolbar.deleteSelectedItems();
var dialog = listContainer.$.dialog.get();
registerMessageCallback('removeVisits', this, function() {
PolymerTest.flushTasks().then(function() {
@@ -76,7 +76,7 @@ suite('<history-list>', function() {
assertDeepEquals([false, false, true, true],
element.historyData_.map(i => i.selected));
- toolbar.onClearSelectionTap_();
+ toolbar.clearSelectedItems();
// Make sure that clearing the selection updates both the array and
// the actual history-items affected.
@@ -313,7 +313,7 @@ suite('<history-list>', function() {
return PolymerTest.flushTasks();
}).then(function() {
- MockInteractions.tap(app.$.toolbar.$$('#delete-button'));
+ toolbar.deleteSelectedItems();
var dialog = listContainer.$.dialog.get();
registerMessageCallback('removeVisits', this, function() {
@@ -438,7 +438,7 @@ suite('<history-list>', function() {
MockInteractions.tap(items[2].$.checkbox);
return PolymerTest.flushTasks();
}).then(function() {
- MockInteractions.tap(app.$.toolbar.$$('#delete-button'));
+ toolbar.deleteSelectedItems();
return PolymerTest.flushTasks();
}).then(function() {
// Confirmation dialog should appear.
« no previous file with comments | « chrome/browser/resources/md_history/lazy_load.html ('k') | chrome/test/data/webui/md_history/history_metrics_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698