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

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

Issue 1993613002: [MD History] Implement grouped history UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@privatize
Patch Set: address comments Created 4 years, 7 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/test/data/webui/md_history/md_history_browsertest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/md_history/test_util.js
diff --git a/chrome/test/data/webui/md_history/test_util.js b/chrome/test/data/webui/md_history/test_util.js
index d0a3fc433140dc1161ffcea40af71e00f5ffab85..f578d0474a7d8d82d61cd1bdf12dc365cb812a76 100644
--- a/chrome/test/data/webui/md_history/test_util.js
+++ b/chrome/test/data/webui/md_history/test_util.js
@@ -55,3 +55,19 @@ function createSearchEntry(timestamp, urlStr) {
return entry;
}
+
+/**
+ * Create a simple HistoryInfo.
+ * @param {?string} searchTerm The search term that the info has. Will be empty
+ * string if not specified.
+ * @return {!HistoryInfo}
+ */
+function createHistoryInfo(searchTerm) {
+ return {
+ finished: true,
+ hasSyncedResults: false,
+ queryEndTime: 'Monday',
+ queryStartTime: 'Tuesday',
+ term: searchTerm || ''
+ };
+}
« no previous file with comments | « chrome/test/data/webui/md_history/md_history_browsertest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698