| 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 6eb61f63dd092eba2d632b219bdb81cd9421ce43..5383fd1d824af25175838f5376508dd0f4a39c5f 100644
|
| --- a/chrome/test/data/webui/md_history/history_toolbar_test.js
|
| +++ b/chrome/test/data/webui/md_history/history_toolbar_test.js
|
| @@ -45,7 +45,7 @@ cr.define('md_history.history_toolbar_test', function() {
|
| test('search term gathered correctly from toolbar', function(done) {
|
| app.queryState_.queryingDisabled = false;
|
| registerMessageCallback('queryHistory', this, function (info) {
|
| - assertEquals(info[0], 'Test');
|
| + assertEquals('Test', info[0]);
|
| done();
|
| });
|
|
|
| @@ -70,7 +70,19 @@ cr.define('md_history.history_toolbar_test', function() {
|
| document.body, 70, 'ctrl', 'f');
|
| assertTrue(field.showingSearch);
|
| assertEquals(field.$.searchInput, field.root.activeElement);
|
| - });
|
| + });
|
| +
|
| + test('spinner is active on search' , function(done) {
|
| + app.queryState_.queryingDisabled = false;
|
| + registerMessageCallback('queryHistory', this, function (info) {
|
| + assertTrue(toolbar.spinnerActive);
|
| + app.historyResult(createHistoryInfo(), TEST_HISTORY_RESULTS);
|
| + assertFalse(toolbar.spinnerActive);
|
| + done();
|
| + });
|
| +
|
| + toolbar.$$('cr-toolbar').fire('search-changed', 'Test2');
|
| + });
|
|
|
| teardown(function() {
|
| element.historyData_ = [];
|
|
|