| 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 50b7265ee7e00dc017ddd536dbe1c42e8d790f4b..b16793c473b3c339c672eaad494969ba78c3f845 100644
|
| --- a/chrome/test/data/webui/md_history/history_toolbar_test.js
|
| +++ b/chrome/test/data/webui/md_history/history_toolbar_test.js
|
| @@ -11,13 +11,17 @@ cr.define('md_history.history_toolbar_test', function() {
|
| var TEST_HISTORY_RESULTS;
|
|
|
| suiteSetup(function() {
|
| - app = $('history-app');
|
| - element = app.$['history'].$['infinite-list'];
|
| - toolbar = app.$['toolbar'];
|
| TEST_HISTORY_RESULTS =
|
| [createHistoryEntry('2016-03-15', 'https://google.com')];
|
| });
|
|
|
| + setup(function() {
|
| + app = replaceApp();
|
| + element = app.$['history'].$['infinite-list'];
|
| + toolbar = app.$['toolbar'];
|
| + return flush();
|
| + });
|
| +
|
| test('selecting checkbox causes toolbar to change', function() {
|
| element.addNewResults(TEST_HISTORY_RESULTS);
|
|
|
| @@ -90,10 +94,8 @@ cr.define('md_history.history_toolbar_test', function() {
|
| });
|
|
|
| teardown(function() {
|
| - element.historyData_ = [];
|
| - element.searchedTerm = '';
|
| - registerMessageCallback('queryHistory', this, undefined);
|
| - toolbar.count = 0;
|
| + registerMessageCallback('queryHistory', this, function() {});
|
| + app.set('queryState_.searchTerm', '');
|
| });
|
| });
|
| }
|
|
|