| 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 6e0cded808a621d55488a78309da20b80a090aea..0af588d3d5c0b0d8f70b22902b64dfc1b7e5928f 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-card').$$('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;
|
| });
|
| });
|
|
|