| 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'));
|
| });
|
|
|