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 /** | 5 /** |
6 * Replace the current primary element of the test with a new element. Useful | 6 * Replace the current primary element of the test with a new element. Useful |
7 * as an alternative to PolymerTest.clearBody() which preserves styling. | 7 * as an alternative to PolymerTest.clearBody() which preserves styling. |
8 * @param {Element} element | 8 * @param {Element} element |
9 */ | 9 */ |
10 function replaceBody(element) { | 10 function replaceBody(element) { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 /** | 83 /** |
84 * Create a simple HistoryInfo. | 84 * Create a simple HistoryInfo. |
85 * @param {?string} searchTerm The search term that the info has. Will be empty | 85 * @param {?string} searchTerm The search term that the info has. Will be empty |
86 * string if not specified. | 86 * string if not specified. |
87 * @return {!HistoryInfo} | 87 * @return {!HistoryInfo} |
88 */ | 88 */ |
89 function createHistoryInfo(searchTerm) { | 89 function createHistoryInfo(searchTerm) { |
90 return { | 90 return { |
91 finished: true, | 91 finished: true, |
92 hasSyncedResults: false, | 92 hasSyncedResults: false, |
93 queryEndTime: 'Monday', | 93 queryInterval: 'Monday - Tuesday', |
94 queryStartTime: 'Tuesday', | 94 queryMonth: 'June', |
95 term: searchTerm || '' | 95 term: searchTerm || '' |
96 }; | 96 }; |
97 } | 97 } |
98 | 98 |
99 /** | 99 /** |
100 * @param {Element} element | 100 * @param {Element} element |
101 * @param {string} selector | 101 * @param {string} selector |
102 * @return {Element} | 102 * @return {Element} |
103 */ | 103 */ |
104 function polymerSelectAll(element, selector) { | 104 function polymerSelectAll(element, selector) { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 var tabs = tabUrls.map(function(tabUrl) { | 190 var tabs = tabUrls.map(function(tabUrl) { |
191 return {sessionId: 456, timestamp: 0, title: tabUrl, url: tabUrl}; | 191 return {sessionId: 456, timestamp: 0, title: tabUrl, url: tabUrl}; |
192 }); | 192 }); |
193 | 193 |
194 return { | 194 return { |
195 tabs: tabs, | 195 tabs: tabs, |
196 sessionId: '123', | 196 sessionId: '123', |
197 userVisibleTimestamp: "A while ago" | 197 userVisibleTimestamp: "A while ago" |
198 }; | 198 }; |
199 } | 199 } |
OLD | NEW |