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

Side by Side Diff: runtime/observatory/tests/service/test_helper.dart

Issue 2376433003: Split debugger_location_test into two separate tests (Closed)
Patch Set: Created 4 years, 2 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 | « runtime/observatory/tests/service/service.status ('k') | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_helper; 5 library test_helper;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'package:observatory/service_io.dart'; 10 import 'package:observatory/service_io.dart';
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 if (pause_on_start || line == '') { 219 if (pause_on_start || line == '') {
220 // Received blank line. 220 // Received blank line.
221 blank = true; 221 blank = true;
222 } 222 }
223 if (portNumber != null && blank == true && first == true) { 223 if (portNumber != null && blank == true && first == true) {
224 completer.complete(portNumber); 224 completer.complete(portNumber);
225 // Stop repeat completions. 225 // Stop repeat completions.
226 first = false; 226 first = false;
227 print('** Signaled to run test queries on $portNumber'); 227 print('** Signaled to run test queries on $portNumber');
228 } 228 }
229 print(line); 229 print('>testee>out> $line');
230 }); 230 });
231 process.stderr.transform(UTF8.decoder) 231 process.stderr.transform(UTF8.decoder)
232 .transform(new LineSplitter()).listen((line) { 232 .transform(new LineSplitter()).listen((line) {
233 print(line); 233 print('>testee>err> $line');
234 }); 234 });
235 process.exitCode.then((exitCode) { 235 process.exitCode.then((exitCode) {
236 if ((exitCode != 0) && !killedByTester) { 236 if ((exitCode != 0) && !killedByTester) {
237 throw "Testee exited with $exitCode"; 237 throw "Testee exited with $exitCode";
238 } 238 }
239 print("** Process exited"); 239 print("** Process exited");
240 }); 240 });
241 return completer.future; 241 return completer.future;
242 }); 242 });
243 } 243 }
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 mainArgs: mainArgs, 469 mainArgs: mainArgs,
470 vmTests: tests, 470 vmTests: tests,
471 pause_on_start: pause_on_start, 471 pause_on_start: pause_on_start,
472 pause_on_exit: pause_on_exit, 472 pause_on_exit: pause_on_exit,
473 trace_service: trace_service, 473 trace_service: trace_service,
474 trace_compiler: trace_compiler, 474 trace_compiler: trace_compiler,
475 verbose_vm: verbose_vm, 475 verbose_vm: verbose_vm,
476 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions); 476 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions);
477 } 477 }
478 } 478 }
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/service.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698