| 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 = 19; | 10 const LINE_A = 16; |
| 14 const LINE_B = 20; | 11 const LINE_B = 17; |
| 15 const LINE_C = 25; | 12 const LINE_C = 22; |
| 16 const LINE_D = 26; | 13 const LINE_D = 23; |
| 17 | 14 |
| 18 helper() async { | 15 helper() async { |
| 19 print('helper'); // LINE_A. | 16 print('helper'); // LINE_A. |
| 20 print('foobar'); // LINE_B. | 17 print('foobar'); // LINE_B. |
| 21 } | 18 } |
| 22 | 19 |
| 23 testMain() { | 20 testMain() { |
| 24 debugger(); | 21 debugger(); |
| 25 print('mmmmm'); // LINE_C. | 22 print('mmmmm'); // LINE_C. |
| 26 helper(); // LINE_D. | 23 helper(); // LINE_D. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 37 hasStoppedAtBreakpoint, | 34 hasStoppedAtBreakpoint, |
| 38 stoppedAtLine(LINE_A), | 35 stoppedAtLine(LINE_A), |
| 39 stepOver, // print. | 36 stepOver, // print. |
| 40 hasStoppedAtBreakpoint, | 37 hasStoppedAtBreakpoint, |
| 41 stoppedAtLine(LINE_B), | 38 stoppedAtLine(LINE_B), |
| 42 resumeIsolate | 39 resumeIsolate |
| 43 ]; | 40 ]; |
| 44 | 41 |
| 45 main(args) => | 42 main(args) => |
| 46 runIsolateTestsSynchronous(args, tests, testeeConcurrent: testMain); | 43 runIsolateTestsSynchronous(args, tests, testeeConcurrent: testMain); |
| OLD | NEW |