| 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_item_test', function() { | 5 cr.define('md_history.history_item_test', function() { |
| 6 function registerTests() { | 6 function registerTests() { |
| 7 suite('history-item', function() { | 7 suite('history-item', function() { |
| 8 var element; | 8 var element; |
| 9 var TEST_HISTORY_RESULTS; | 9 var TEST_HISTORY_RESULTS; |
| 10 var SEARCH_HISTORY_RESULTS; | 10 var SEARCH_HISTORY_RESULTS; |
| 11 | 11 |
| 12 suiteSetup(function() { | 12 suiteSetup(function() { |
| 13 element = $('history-app').$['history-list']; | 13 element = $('history-app').$['history'].$['infinite-list']; |
| 14 TEST_HISTORY_RESULTS = [ | 14 TEST_HISTORY_RESULTS = [ |
| 15 createHistoryEntry('2016-03-16 10:00', 'http://www.google.com'), | 15 createHistoryEntry('2016-03-16 10:00', 'http://www.google.com'), |
| 16 createHistoryEntry('2016-03-16 9:00', 'http://www.example.com'), | 16 createHistoryEntry('2016-03-16 9:00', 'http://www.example.com'), |
| 17 createHistoryEntry('2016-03-16 7:01', 'http://www.badssl.com'), | 17 createHistoryEntry('2016-03-16 7:01', 'http://www.badssl.com'), |
| 18 createHistoryEntry('2016-03-16 7:00', 'http://www.website.com'), | 18 createHistoryEntry('2016-03-16 7:00', 'http://www.website.com'), |
| 19 createHistoryEntry('2016-03-16 4:00', 'http://www.website.com'), | 19 createHistoryEntry('2016-03-16 4:00', 'http://www.website.com'), |
| 20 createHistoryEntry('2016-03-15 11:00', 'http://www.example.com'), | 20 createHistoryEntry('2016-03-15 11:00', 'http://www.example.com'), |
| 21 ]; | 21 ]; |
| 22 | 22 |
| 23 SEARCH_HISTORY_RESULTS = [ | 23 SEARCH_HISTORY_RESULTS = [ |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 teardown(function() { | 103 teardown(function() { |
| 104 element.historyData_ = []; | 104 element.historyData_ = []; |
| 105 element.searchedTerm = ''; | 105 element.searchedTerm = ''; |
| 106 }); | 106 }); |
| 107 }); | 107 }); |
| 108 } | 108 } |
| 109 return { | 109 return { |
| 110 registerTests: registerTests | 110 registerTests: registerTests |
| 111 }; | 111 }; |
| 112 }); | 112 }); |
| OLD | NEW |