| OLD | NEW |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 1 import 'dart:async'; | 5 import 'dart:async'; |
| 2 import 'test_helper.dart'; | 6 import 'test_helper.dart'; |
| 3 import 'service_test_common.dart'; | 7 import 'service_test_common.dart'; |
| 4 import 'package:observatory/service_io.dart'; | 8 import 'package:observatory/service_io.dart'; |
| 5 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
| 6 | 10 |
| 7 const int LINE_A = 10; | 11 const int LINE_A = 14; |
| 8 | 12 |
| 9 code() { | 13 code() { |
| 10 var x = {}; // LINE_A | 14 var x = {}; // LINE_A |
| 11 } | 15 } |
| 12 | 16 |
| 13 Future<Isolate> stepThroughProgram(Isolate isolate) async { | 17 Future<Isolate> stepThroughProgram(Isolate isolate) async { |
| 14 Completer completer = new Completer(); | 18 Completer completer = new Completer(); |
| 15 int pauseEventsSeen = 0; | 19 int pauseEventsSeen = 0; |
| 16 | 20 |
| 17 await subscribeToStream(isolate.vm, VM.kDebugStream, | 21 await subscribeToStream(isolate.vm, VM.kDebugStream, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 return completer.future; | 36 return completer.future; |
| 33 } | 37 } |
| 34 | 38 |
| 35 var tests = [hasPausedAtStart, | 39 var tests = [hasPausedAtStart, |
| 36 markDartColonLibrariesDebuggable, | 40 markDartColonLibrariesDebuggable, |
| 37 setBreakpointAtLine(LINE_A), | 41 setBreakpointAtLine(LINE_A), |
| 38 stepThroughProgram]; | 42 stepThroughProgram]; |
| 39 | 43 |
| 40 main(args) => runIsolateTestsSynchronous(args, tests, | 44 main(args) => runIsolateTestsSynchronous(args, tests, |
| 41 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true); | 45 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true); |
| OLD | NEW |