OLD | NEW |
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 18 matching lines...) Expand all Loading... |
29 expect(pauseEventsSeen > 20, true, | 29 expect(pauseEventsSeen > 20, true, |
30 reason: "Saw only $pauseEventsSeen pause events."); | 30 reason: "Saw only $pauseEventsSeen pause events."); |
31 await cancelStreamSubscription(VM.kDebugStream); | 31 await cancelStreamSubscription(VM.kDebugStream); |
32 completer.complete(); | 32 completer.complete(); |
33 } | 33 } |
34 }); | 34 }); |
35 isolate.resume(); | 35 isolate.resume(); |
36 return completer.future; | 36 return completer.future; |
37 } | 37 } |
38 | 38 |
39 var tests = [hasPausedAtStart, | 39 var tests = [ |
40 markDartColonLibrariesDebuggable, | 40 hasPausedAtStart, |
41 setBreakpointAtLine(LINE_A), | 41 markDartColonLibrariesDebuggable, |
42 stepThroughProgram]; | 42 setBreakpointAtLine(LINE_A), |
| 43 stepThroughProgram |
| 44 ]; |
43 | 45 |
44 main(args) => runIsolateTestsSynchronous(args, tests, | 46 main(args) => runIsolateTestsSynchronous(args, tests, |
45 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true); | 47 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true); |
OLD | NEW |