| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 cr.define('md_history.history_list_test', function() { | 5 cr.define('md_history.history_list_test', function() { |
| 6 function registerTests() { | 6 function registerTests() { |
| 7 suite('history-list', function() { | 7 suite('history-list', function() { |
| 8 var app; | 8 var app; |
| 9 var element; | 9 var element; |
| 10 var toolbar; | 10 var toolbar; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 | 226 |
| 227 // Confirmation dialog should appear. | 227 // Confirmation dialog should appear. |
| 228 assertTrue(listContainer.$.dialog.opened); | 228 assertTrue(listContainer.$.dialog.opened); |
| 229 | 229 |
| 230 MockInteractions.tap(listContainer.$$('.action-button')); | 230 MockInteractions.tap(listContainer.$$('.action-button')); |
| 231 }); | 231 }); |
| 232 }); | 232 }); |
| 233 | 233 |
| 234 teardown(function() { | 234 teardown(function() { |
| 235 element.historyData_ = []; | 235 element.historyData_ = []; |
| 236 element.searchedTerm = ''; | |
| 237 registerMessageCallback('removeVisits', this, undefined); | 236 registerMessageCallback('removeVisits', this, undefined); |
| 237 registerMessageCallback('queryHistory', this, undefined); |
| 238 app.queryState_.queryingDisabled = true; |
| 239 app.set('queryState_.searchTerm', ''); |
| 240 return flush(); |
| 238 }); | 241 }); |
| 239 }); | 242 }); |
| 240 } | 243 } |
| 241 return { | 244 return { |
| 242 registerTests: registerTests | 245 registerTests: registerTests |
| 243 }; | 246 }; |
| 244 }); | 247 }); |
| OLD | NEW |