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

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

Issue 2786503003: Fix a couple of bugs with async stack traces (Closed)
Patch Set: update dartk service test status Created 3 years, 8 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'test_helper.dart'; 6 import 'test_helper.dart';
7 import 'service_test_common.dart'; 7 import 'service_test_common.dart';
8 import 'package:observatory/service_io.dart'; 8 import 'package:observatory/service_io.dart';
9 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
10 10
(...skipping 13 matching lines...) Expand all
24 vmService = new VMServiceClient(uri); 24 vmService = new VMServiceClient(uri);
25 await new Future.microtask(() => throw new TimeoutException("here")); 25 await new Future.microtask(() => throw new TimeoutException("here"));
26 } on dynamic { 26 } on dynamic {
27 vmService.close(); 27 vmService.close();
28 rethrow; // LINE_A 28 rethrow; // LINE_A
29 } 29 }
30 }); 30 });
31 } 31 }
32 32
33 test_code() async { 33 test_code() async {
34 // LINE_B
35 try { 34 try {
36 await collect(); 35 await collect();
37 } on TimeoutException { 36 } on TimeoutException {
38 print("ok"); 37 print("ok");
39 } 38 }
40 } 39 }
41 40
42 Future<Isolate> stepThroughProgram(Isolate isolate) async { 41 Future<Isolate> stepThroughProgram(Isolate isolate) async {
43 Completer completer = new Completer(); 42 Completer completer = new Completer();
44 int pauseEventsSeen = 0; 43 int pauseEventsSeen = 0;
(...skipping 25 matching lines...) Expand all
70 setBreakpointAtLine(LINE_A), 69 setBreakpointAtLine(LINE_A),
71 resumeIsolate, 70 resumeIsolate,
72 hasStoppedAtBreakpoint, 71 hasStoppedAtBreakpoint,
73 stepOut, 72 stepOut,
74 stoppedAtLine(LINE_B), 73 stoppedAtLine(LINE_B),
75 resumeIsolate 74 resumeIsolate
76 ]; 75 ];
77 76
78 main(args) => runIsolateTestsSynchronous(args, tests, 77 main(args) => runIsolateTestsSynchronous(args, tests,
79 testeeConcurrent: test_code, pause_on_start: true, pause_on_exit: false); 78 testeeConcurrent: test_code, pause_on_start: true, pause_on_exit: false);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698