| 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 = 21; | 11 const LINE_A = 19; |
| 14 const LINE_B = 22; | 12 const LINE_B = 20; |
| 15 const LINE_C = 26; | 13 const LINE_C = 24; |
| 16 const LINE_D = 29; | 14 const LINE_D = 27; |
| 17 const LINE_E = 35; | 15 const LINE_E = 33; |
| 18 const LINE_F = 36; | 16 const LINE_F = 34; |
| 19 | 17 |
| 20 foobar() async* { | 18 foobar() async* { |
| 21 yield 1; // LINE_A. | 19 yield 1; // LINE_A. |
| 22 yield 2; // LINE_B. | 20 yield 2; // LINE_B. |
| 23 } | 21 } |
| 24 | 22 |
| 25 helper() async { | 23 helper() async { |
| 26 print('helper'); // LINE_C. | 24 print('helper'); // LINE_C. |
| 27 await for (var i in foobar()) { | 25 await for (var i in foobar()) { |
| 28 debugger(); | 26 debugger(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 59 stepOver, // print. | 57 stepOver, // print. |
| 60 hasStoppedAtBreakpoint, | 58 hasStoppedAtBreakpoint, |
| 61 stepInto, | 59 stepInto, |
| 62 hasStoppedAtBreakpoint, | 60 hasStoppedAtBreakpoint, |
| 63 stoppedAtLine(LINE_B), | 61 stoppedAtLine(LINE_B), |
| 64 resumeIsolate, | 62 resumeIsolate, |
| 65 ]; | 63 ]; |
| 66 | 64 |
| 67 main(args) => | 65 main(args) => |
| 68 runIsolateTestsSynchronous(args, tests, testeeConcurrent: testMain); | 66 runIsolateTestsSynchronous(args, tests, testeeConcurrent: testMain); |
| OLD | NEW |