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

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

Issue 2122823002: [MD History] Fix issues caused by refactor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@funky_fresh
Patch Set: fix nit Created 4 years, 5 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 20e725dcd3ad990fd0f7c5e818fa3418807b7cf6..108e7b6ffd46d4f068e1240a58e0a89353ab0020 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
@@ -75,7 +75,10 @@ cr.define('md_history.history_grouped_list_test', function() {
test('items grouped by domain', function() {
app.set('queryState_.range', HistoryRange.WEEK);
- app.historyResult(createHistoryInfo(), SIMPLE_RESULTS);
+ var info = createHistoryInfo();
+ info.queryStartTime = 'Yesterday';
+ info.queryEndTime = 'Now';
+ app.historyResult(info, SIMPLE_RESULTS);
return flush().then(function() {
var data = groupedList.groupedHistoryData_;
// 1 card for the day with 3 domains.
@@ -86,6 +89,10 @@ cr.define('md_history.history_grouped_list_test', function() {
assertEquals(2, data[0].domains[0].visits.length);
assertEquals(1, data[0].domains[1].visits.length);
assertEquals(1, data[0].domains[2].visits.length);
+
+ // Ensure the toolbar displays the correct begin and end time.
+ assertEquals('Yesterday', toolbar.queryStartTime);
+ assertEquals('Now', toolbar.queryEndTime);
});
});
« no previous file with comments | « chrome/browser/resources/md_history/list_container.js ('k') | chrome/test/data/webui/md_history/history_synced_tabs_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698