| OLD | NEW |
| (Empty) | |
| 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 |
| 5 import 'test_helper.dart'; |
| 6 import 'service_test_common.dart'; |
| 7 |
| 8 const int LINE_A = 11; |
| 9 const String file = "next_through_new_test.dart"; |
| 10 |
| 11 code() { |
| 12 var x = new Foo(); |
| 13 return x; |
| 14 } |
| 15 |
| 16 class Foo { |
| 17 var x; |
| 18 } |
| 19 |
| 20 List<String> stops = []; |
| 21 List<String> expected = [ |
| 22 "$file:${LINE_A+0}:5", // on '(' in 'code()' |
| 23 "$file:${LINE_A+1}:15", // on 'Foo' |
| 24 "$file:${LINE_A+2}:3" // on 'return' |
| 25 ]; |
| 26 |
| 27 var tests = [ |
| 28 hasPausedAtStart, |
| 29 setBreakpointAtLine(LINE_A), |
| 30 runStepThroughProgramRecordingStops(stops), |
| 31 checkRecordedStops(stops, expected) |
| 32 ]; |
| 33 |
| 34 main(args) { |
| 35 runIsolateTestsSynchronous(args, tests, |
| 36 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true); |
| 37 } |
| OLD | NEW |