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

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

Issue 1974713002: [MD History] Unify query state in history-app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@secondary_toolbar
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
Index: chrome/test/data/webui/md_history/history_item_test.js
diff --git a/chrome/test/data/webui/md_history/history_item_test.js b/chrome/test/data/webui/md_history/history_item_test.js
index 8b69fac0d879a27036a7965ed9c2e23bed482de1..a620f4e9201831c360a38a9c4d507ad2cac2540e 100644
--- a/chrome/test/data/webui/md_history/history_item_test.js
+++ b/chrome/test/data/webui/md_history/history_item_test.js
@@ -22,13 +22,13 @@ cr.define('md_history.history_item_test', function() {
SEARCH_HISTORY_RESULTS = [
createSearchEntry('2016-03-16', "http://www.google.com"),
- createSearchEntry('2016-03-14', "http://calendar.google.com"),
- createSearchEntry('2016-03-14', "http://mail.google.com")
+ createSearchEntry('2016-03-14 11:00', "http://calendar.google.com"),
+ createSearchEntry('2016-03-14 10:00', "http://mail.google.com")
];
});
test('basic separator insertion', function(done) {
- element.addNewResults(TEST_HISTORY_RESULTS, '');
+ element.addNewResults(TEST_HISTORY_RESULTS);
flush(function() {
// Check that the correct number of time gaps are inserted.
var items =
@@ -46,7 +46,8 @@ cr.define('md_history.history_item_test', function() {
});
test('separator insertion for search', function(done) {
- element.addNewResults(SEARCH_HISTORY_RESULTS, 'search');
+ element.addNewResults(SEARCH_HISTORY_RESULTS);
+ element.searchedTerm = 'search';
flush(function() {
var items =
Polymer.dom(element.root).querySelectorAll('history-item');
@@ -60,7 +61,7 @@ cr.define('md_history.history_item_test', function() {
});
test('separator insertion after deletion', function(done) {
- element.addNewResults(TEST_HISTORY_RESULTS, '');
+ element.addNewResults(TEST_HISTORY_RESULTS);
flush(function() {
var items =
Polymer.dom(element.root).querySelectorAll('history-item');
@@ -81,6 +82,7 @@ cr.define('md_history.history_item_test', function() {
teardown(function() {
element.historyData = [];
+ element.searchedTerm = '';
});
});
}
« no previous file with comments | « chrome/browser/resources/md_history/history_toolbar.js ('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