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; | |
8 import 'package:observatory/service_io.dart'; | |
9 import 'package:unittest/unittest.dart'; | |
10 import 'service_test_common.dart'; | 7 import 'service_test_common.dart'; |
11 import 'test_helper.dart'; | 8 import 'test_helper.dart'; |
12 | 9 |
13 const LINE_A = 20; | 10 const LINE_A = 17; |
14 const LINE_B = 21; | 11 const LINE_B = 18; |
15 const LINE_C = 26; | 12 const LINE_C = 23; |
16 const LINE_D = 27; | 13 const LINE_D = 24; |
17 const LINE_E = 28; | 14 const LINE_E = 25; |
18 | 15 |
19 helper() async { | 16 helper() async { |
20 print('helper'); // LINE_A. | 17 print('helper'); // LINE_A. |
21 return null; // LINE_B. | 18 return null; // LINE_B. |
22 } | 19 } |
23 | 20 |
24 testMain() async { | 21 testMain() async { |
25 debugger(); | 22 debugger(); |
26 print('mmmmm'); // LINE_C. | 23 print('mmmmm'); // LINE_C. |
27 await helper(); // LINE_D. | 24 await helper(); // LINE_D. |
(...skipping 12 matching lines...) Expand all Loading... |
40 stepOver, // print. | 37 stepOver, // print. |
41 hasStoppedAtBreakpoint, | 38 hasStoppedAtBreakpoint, |
42 stoppedAtLine(LINE_B), // return null. | 39 stoppedAtLine(LINE_B), // return null. |
43 stepInto, // exit helper via a single step. | 40 stepInto, // exit helper via a single step. |
44 hasStoppedAtBreakpoint, | 41 hasStoppedAtBreakpoint, |
45 stoppedAtLine(LINE_E), // arrive after the await. | 42 stoppedAtLine(LINE_E), // arrive after the await. |
46 resumeIsolate | 43 resumeIsolate |
47 ]; | 44 ]; |
48 | 45 |
49 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); | 46 main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); |
OLD | NEW |