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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/test_runner/TestRunner.js

Issue 2948183002: DevTools: remove TestRunner.loadLazyModules (Closed)
Patch Set: Created 3 years, 6 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 /* eslint-disable no-console */ 5 /* eslint-disable no-console */
6 6
7 /** @type {!{logToStderr: function(), notifyDone: function()}|undefined} */ 7 /** @type {!{logToStderr: function(), notifyDone: function()}|undefined} */
8 self.testRunner; 8 self.testRunner;
9 9
10 TestRunner.executeTestScript = function() { 10 TestRunner.executeTestScript = function() {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 /** 153 /**
154 * @param {string} module 154 * @param {string} module
155 * @return {!Promise<undefined>} 155 * @return {!Promise<undefined>}
156 */ 156 */
157 TestRunner.loadModule = function(module) { 157 TestRunner.loadModule = function(module) {
158 return self.runtime.loadModulePromise(module); 158 return self.runtime.loadModulePromise(module);
159 }; 159 };
160 160
161 /** 161 /**
162 * @param {!Array<string>} lazyModules
163 * @return {!Promise<!Array<undefined>>}
164 */
165 TestRunner.loadLazyModules = function(lazyModules) {
166 return Promise.all(lazyModules.map(lazyModule => self.runtime.loadModulePromis e(lazyModule)));
167 };
168
169 /**
170 * @param {string} panel 162 * @param {string} panel
171 * @return {!Promise<!UI.Panel>} 163 * @return {!Promise<!UI.Panel>}
172 */ 164 */
173 TestRunner.loadPanel = function(panel) { 165 TestRunner.loadPanel = function(panel) {
174 return UI.inspectorView.panel(panel); 166 return UI.inspectorView.panel(panel);
175 }; 167 };
176 168
177 /** 169 /**
178 * @param {string} key 170 * @param {string} key
179 * @param {boolean=} ctrlKey 171 * @param {boolean=} ctrlKey
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 * @param {number} colno 231 * @param {number} colno
240 * @param {!Error} error 232 * @param {!Error} error
241 */ 233 */
242 function completeTestOnError(message, source, lineno, colno, error) { 234 function completeTestOnError(message, source, lineno, colno, error) {
243 TestRunner.addResult('TEST ENDED IN ERROR: ' + error.stack); 235 TestRunner.addResult('TEST ENDED IN ERROR: ' + error.stack);
244 TestRunner.completeTest(); 236 TestRunner.completeTest();
245 } 237 }
246 238
247 self['onerror'] = completeTestOnError; 239 self['onerror'] = completeTestOnError;
248 })(); 240 })();
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/inspector-unit/viewport-datagrid-items-expandable-attached-to-dom.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698