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

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

Issue 1643693003: MD History: Implement search functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch_to_be_uploaded
Patch Set: Rebase and address reviewer comments. Created 4 years, 10 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/history_card_manager_test.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/history_toolbar_test.js
diff --git a/chrome/test/data/webui/md_history/history_toolbar_test.js b/chrome/test/data/webui/md_history/history_toolbar_test.js
index 3a8086694d9986e02f1bc1f2d059c1b4b0cadf7b..e15547fa56f0e77d76a2470f154898998b709f24 100644
--- a/chrome/test/data/webui/md_history/history_toolbar_test.js
+++ b/chrome/test/data/webui/md_history/history_toolbar_test.js
@@ -7,6 +7,7 @@ cr.define('md_history.history_toolbar_test', function() {
var TEST_HISTORY_RESULTS = [
{
"dateRelativeDay": "Today - Wednesday, December 9, 2015",
+ "title": "Google",
"url": "https://www.google.com"
}
];
@@ -22,7 +23,7 @@ cr.define('md_history.history_toolbar_test', function() {
});
test('selecting checkbox causes toolbar to change', function(done) {
- element.addNewResults(TEST_HISTORY_RESULTS);
+ element.addNewResults(TEST_HISTORY_RESULTS, '');
flush(function() {
var item = element.$$('history-item');
@@ -47,7 +48,17 @@ cr.define('md_history.history_toolbar_test', function() {
});
});
+ test('search term gathered correctly from toolbar', function(done) {
+ registerMessageCallback('queryHistory', this, function (info) {
+ assertEquals(info[0], 'Test');
+ done();
+ });
+
+ toolbar.onSearchTermSearch('Test');
+ });
+
teardown(function() {
+ element.historyDataByDay_ = [];
toolbar.count = 0;
});
});
« no previous file with comments | « chrome/test/data/webui/md_history/history_card_manager_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698