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

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

Issue 2230003002: MD History: Add lazy-render element for simple lazy initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/ui/webui/md_history_ui.cc ('k') | chrome/test/data/webui/md_history/history_list_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_history/history_grouped_list_test.js
diff --git a/chrome/test/data/webui/md_history/history_grouped_list_test.js b/chrome/test/data/webui/md_history/history_grouped_list_test.js
index 931f42729b826111127f01a410078569427f691f..59e7561746b55d033e42338faea15b3d36e2406e 100644
--- a/chrome/test/data/webui/md_history/history_grouped_list_test.js
+++ b/chrome/test/data/webui/md_history/history_grouped_list_test.js
@@ -186,6 +186,11 @@ cr.define('md_history.history_grouped_list_test', function() {
MockInteractions.tap(items[1].$.checkbox);
MockInteractions.tap(items[1].$.checkbox);
+ return flush();
+ }).then(function() {
+ MockInteractions.tap(app.$.toolbar.$$('#delete-button'));
+ return listContainer.$.dialog.get();
+ }).then(function(dialog) {
registerMessageCallback('removeVisits', this, function() {
flush().then(function() {
deleteComplete();
@@ -206,15 +211,12 @@ cr.define('md_history.history_grouped_list_test', function() {
1, polymerSelectAll(groupedList,
'.group-container').length);
- assertFalse(listContainer.$.dialog.open);
+ assertFalse(dialog.open);
done();
});
});
-
- MockInteractions.tap(app.$.toolbar.$$('#delete-button'));
-
// Confirmation dialog should appear.
- assertTrue(listContainer.$.dialog.open);
+ assertTrue(dialog.open);
MockInteractions.tap(listContainer.$$('.action-button'));
});
« no previous file with comments | « chrome/browser/ui/webui/md_history_ui.cc ('k') | chrome/test/data/webui/md_history/history_list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698