Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Side by Side Diff: chrome/test/data/webui/md_history/test_util.js

Issue 2207323002: [MD History] Factor out a common HistoryListBehavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 * Waits for queued up tasks to finish before proceeding. Inspired by: 6 * Waits for queued up tasks to finish before proceeding. Inspired by:
7 * https://github.com/Polymer/web-component-tester/blob/master/browser/environme nt/helpers.js#L97 7 * https://github.com/Polymer/web-component-tester/blob/master/browser/environme nt/helpers.js#L97
8 */ 8 */
9 function flush() { 9 function flush() {
10 Polymer.dom.flush(); 10 Polymer.dom.flush();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 */ 68 */
69 function createHistoryInfo(searchTerm) { 69 function createHistoryInfo(searchTerm) {
70 return { 70 return {
71 finished: true, 71 finished: true,
72 hasSyncedResults: false, 72 hasSyncedResults: false,
73 queryEndTime: 'Monday', 73 queryEndTime: 'Monday',
74 queryStartTime: 'Tuesday', 74 queryStartTime: 'Tuesday',
75 term: searchTerm || '' 75 term: searchTerm || ''
76 }; 76 };
77 } 77 }
78
79 /**
80 * @param {Element} element
81 * @param {string} selector
82 * @return {Element}
83 */
84 function polymerQuerySelectorAll(element, selector) {
tsergeant 2016/08/05 01:39:09 If you want, you could make your/our lives easier
calamity 2016/08/09 02:56:00 Done.
85 return Polymer.dom(element.root).querySelectorAll(selector);
86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698