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