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

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

Issue 2375223002: md-settings: Fix back navigation from /resetProfileSettings. (Closed)
Patch Set: Fix failing test. Created 4 years, 2 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_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 434a8c079c42cb81fc31227475994fc46f6691a2..35e69e428090908fbbdc92342b5dc5a1c70cdef7 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
@@ -48,7 +48,7 @@ cr.define('md_history.history_grouped_list_test', function() {
listContainer = app.$['history'];
toolbar = app.$['toolbar'];
sidebar = app.$['content-side-bar'];
- return flush().then(function() {
+ return PolymerTest.flushTasks().then(function() {
groupedList = app.$.history.$$('#grouped-list');
assertTrue(!!groupedList);
});
@@ -83,7 +83,7 @@ cr.define('md_history.history_grouped_list_test', function() {
info.queryStartTime = 'Yesterday';
info.queryEndTime = 'Now';
app.historyResult(info, SIMPLE_RESULTS);
- return flush().then(function() {
+ return PolymerTest.flushTasks().then(function() {
var data = groupedList.groupedHistoryData_;
// 1 card for the day with 3 domains.
assertEquals(1, data.length);
@@ -103,7 +103,7 @@ cr.define('md_history.history_grouped_list_test', function() {
test('items grouped by day in week view', function() {
app.set('queryState_.range', HistoryRange.WEEK);
app.historyResult(createHistoryInfo(), PER_DAY_RESULTS);
- return flush().then(function() {
+ return PolymerTest.flushTasks().then(function() {
var data = groupedList.groupedHistoryData_;
// 3 cards.
@@ -124,7 +124,7 @@ cr.define('md_history.history_grouped_list_test', function() {
test('items grouped by month in month view', function() {
app.set('queryState_.range', HistoryRange.MONTH);
app.historyResult(createHistoryInfo(), PER_MONTH_RESULTS);
- return flush().then(function() {
+ return PolymerTest.flushTasks().then(function() {
var data = groupedList.groupedHistoryData_;
// 1 card.
@@ -140,11 +140,11 @@ cr.define('md_history.history_grouped_list_test', function() {
app.set('queryState_.range', HistoryRange.WEEK);
app.historyResult(createHistoryInfo(), SIMPLE_RESULTS);
- return flush().then(function() {
+ return PolymerTest.flushTasks().then(function() {
assertEquals(
0, polymerSelectAll(groupedList, 'history-item').length);
MockInteractions.tap(groupedList.$$('.domain-heading'));
- return flush();
+ return PolymerTest.flushTasks();
}).then(function() {
assertEquals(
2, polymerSelectAll(groupedList, 'history-item').length);
@@ -172,7 +172,7 @@ cr.define('md_history.history_grouped_list_test', function() {
polymerSelectAll(groupedList, '.dropdown-indicator').
forEach(MockInteractions.tap);
- return flush();
+ return PolymerTest.flushTasks();
}).then(function() {
var items = polymerSelectAll(groupedList, 'history-item');
@@ -223,7 +223,7 @@ cr.define('md_history.history_grouped_list_test', function() {
polymerSelectAll(groupedList, '.dropdown-indicator').
forEach(MockInteractions.tap);
- return flush();
+ return PolymerTest.flushTasks();
}).then(function() {
var items = polymerSelectAll(groupedList, 'history-item');
@@ -238,13 +238,13 @@ cr.define('md_history.history_grouped_list_test', function() {
MockInteractions.tap(items[1].$.checkbox);
MockInteractions.tap(items[1].$.checkbox);
- return flush();
+ return PolymerTest.flushTasks();
}).then(function() {
MockInteractions.tap(app.$.toolbar.$$('#delete-button'));
var dialog = listContainer.$.dialog.get();
registerMessageCallback('removeVisits', this, function() {
- flush().then(function() {
+ PolymerTest.flushTasks().then(function() {
deleteComplete();
return waitForEvent(groupedList, 'dom-change', function() {
return polymerSelectAll(
« no previous file with comments | « chrome/test/data/webui/md_history/history_drawer_test.js ('k') | chrome/test/data/webui/md_history/history_item_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698