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 // VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug --asyn
c_debugger | 4 // VMOptions=--error_on_bad_type --error_on_bad_override --verbose_debug --asyn
c_debugger |
5 | 5 |
6 import 'dart:developer'; | 6 import 'dart:developer'; |
7 import 'package:observatory/models.dart' as M; | 7 |
8 import 'package:observatory/service_io.dart'; | |
9 import 'package:unittest/unittest.dart'; | |
10 import 'service_test_common.dart'; | 8 import 'service_test_common.dart'; |
11 import 'test_helper.dart'; | 9 import 'test_helper.dart'; |
12 | 10 |
13 const LINE_A = 19; | 11 const LINE_A = 17; |
14 const LINE_B = 20; | 12 const LINE_B = 18; |
15 const LINE_C = 25; | 13 const LINE_C = 23; |
16 const LINE_D = 26; | 14 const LINE_D = 24; |
17 | 15 |
18 helper() async { | 16 helper() async { |
19 print('helper'); // LINE_A. | 17 print('helper'); // LINE_A. |
20 print('foobar'); // LINE_B. | 18 print('foobar'); // LINE_B. |
21 } | 19 } |
22 | 20 |
23 testMain() { | 21 testMain() { |
24 debugger(); | 22 debugger(); |
25 print('mmmmm'); // LINE_C. | 23 print('mmmmm'); // LINE_C. |
26 helper(); // LINE_D. | 24 helper(); // LINE_D. |
(...skipping 10 matching lines...) Expand all Loading... |
37 hasStoppedAtBreakpoint, | 35 hasStoppedAtBreakpoint, |
38 stoppedAtLine(LINE_A), | 36 stoppedAtLine(LINE_A), |
39 stepOver, // print. | 37 stepOver, // print. |
40 hasStoppedAtBreakpoint, | 38 hasStoppedAtBreakpoint, |
41 stoppedAtLine(LINE_B), | 39 stoppedAtLine(LINE_B), |
42 resumeIsolate | 40 resumeIsolate |
43 ]; | 41 ]; |
44 | 42 |
45 main(args) => | 43 main(args) => |
46 runIsolateTestsSynchronous(args, tests, testeeConcurrent: testMain); | 44 runIsolateTestsSynchronous(args, tests, testeeConcurrent: testMain); |
OLD | NEW |