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

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

Issue 2694013003: Add tests of line numbers to causal async stack tests (Closed)
Patch Set: Created 3 years, 10 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 (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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 testIndex++; 323 testIndex++;
324 await test(isolate); 324 await test(isolate);
325 } 325 }
326 } 326 }
327 327
328 print('All service tests completed successfully.'); 328 print('All service tests completed successfully.');
329 testsDone = true; 329 testsDone = true;
330 await process.requestExit(); 330 await process.requestExit();
331 }); 331 });
332 }, onError: (error, stackTrace) async { 332 }, onError: (error, stackTrace) async {
333 print('onERROR FIRED!');
334 if (testsDone) { 333 if (testsDone) {
335 print('Ignoring late exception during process exit:\n' 334 print('Ignoring late exception during process exit:\n'
336 '$error\n#stackTrace'); 335 '$error\n#stackTrace');
337 } else { 336 } else {
338 await process.requestExit(); 337 await process.requestExit();
339 print('Unexpected exception in service tests: $error\n$stackTrace'); 338 print('Unexpected exception in service tests: $error\n$stackTrace');
340 throw error; 339 throw error;
341 } 340 }
342 }); 341 });
343 } 342 }
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 new _ServiceTesterRunner().run( 478 new _ServiceTesterRunner().run(
480 mainArgs: mainArgs, 479 mainArgs: mainArgs,
481 extraArgs: extraArgs, 480 extraArgs: extraArgs,
482 vmTests: tests, 481 vmTests: tests,
483 pause_on_start: pause_on_start, 482 pause_on_start: pause_on_start,
484 pause_on_exit: pause_on_exit, 483 pause_on_exit: pause_on_exit,
485 verbose_vm: verbose_vm, 484 verbose_vm: verbose_vm,
486 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions); 485 pause_on_unhandled_exceptions: pause_on_unhandled_exceptions);
487 } 486 }
488 } 487 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698