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

Side by Side Diff: lib/src/runner.dart

Issue 1257953008: Expose content shell's remote debugging URL. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | lib/src/runner/browser/browser.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.runner; 5 library test.runner;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:async/async.dart'; 10 import 'package:async/async.dart';
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 if (suite.platform.isDartVM) { 227 if (suite.platform.isDartVM) {
228 var url = suite.environment.observatoryUrl; 228 var url = suite.environment.observatoryUrl;
229 if (url == null) { 229 if (url == null) {
230 print("${yellow}Observatory URL not found. Make sure you're using " 230 print("${yellow}Observatory URL not found. Make sure you're using "
231 "${suite.platform.name} 1.11 or later.$noColor"); 231 "${suite.platform.name} 1.11 or later.$noColor");
232 } else { 232 } else {
233 print("Observatory URL: $bold$url$noColor"); 233 print("Observatory URL: $bold$url$noColor");
234 } 234 }
235 } 235 }
236 236
237 if (suite.platform == TestPlatform.contentShell) {
238 var url = suite.environment.remoteDebuggerUrl;
239 if (url == null) {
240 print("${yellow}Remote debugger URL not found.$noColor");
241 } else {
242 print("Remote debugger URL: $bold$url$noColor");
243 }
244 }
245
237 var buffer = new StringBuffer( 246 var buffer = new StringBuffer(
238 "${bold}The test runner is paused.${noColor} "); 247 "${bold}The test runner is paused.${noColor} ");
239 if (!suite.platform.isHeadless) { 248 if (!suite.platform.isHeadless) {
240 buffer.write("Open the dev console in ${suite.platform} "); 249 buffer.write("Open the dev console in ${suite.platform} ");
241 if (suite.platform.isDartVM) buffer.write("or "); 250 if (suite.platform.isDartVM) buffer.write("or ");
242 } else { 251 } else {
243 buffer.write("Open "); 252 buffer.write("Open ");
253 if (suite.platform == TestPlatform.contentShell) {
254 buffer.write("the remote debugger or ");
255 }
244 } 256 }
245 if (suite.platform.isDartVM) buffer.write("the Observatory "); 257 if (suite.platform.isDartVM) buffer.write("the Observatory ");
246 258
247 buffer.write("and set breakpoints. Once you're finished, return to this " 259 buffer.write("and set breakpoints. Once you're finished, return to this "
248 "terminal and press Enter."); 260 "terminal and press Enter.");
249 261
250 print(wordWrap(buffer.toString())); 262 print(wordWrap(buffer.toString()));
251 263
252 await inCompletionOrder([ 264 await inCompletionOrder([
253 suite.environment.displayPause(), 265 suite.environment.displayPause(),
254 cancelableNext(stdinLines) 266 cancelableNext(stdinLines)
255 ]).first; 267 ]).first;
256 } finally { 268 } finally {
257 _reporter.resume(); 269 _reporter.resume();
258 } 270 }
259 } 271 }
260 } 272 }
OLDNEW
« no previous file with comments | « no previous file | lib/src/runner/browser/browser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698