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-list'); | 13 element = $('history-app').$['history-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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 teardown(function() { | 87 teardown(function() { |
88 element.historyData = []; | 88 element.historyData = []; |
89 }); | 89 }); |
90 }); | 90 }); |
91 } | 91 } |
92 return { | 92 return { |
93 registerTests: registerTests | 93 registerTests: registerTests |
94 }; | 94 }; |
95 }); | 95 }); |
OLD | NEW |