Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 import 'test_helper.dart'; | |
|
Kevin Millikin (Google)
2017/02/08 15:37:52
License header.
jensj
2017/02/13 14:04:16
Done.
| |
| 2 import 'service_test_common.dart'; | |
| 3 | |
| 4 const int LINE_A = 7; | |
| 5 const String file = "next_through_new_test.dart"; | |
| 6 | |
| 7 code() { | |
| 8 var x = new Foo(); | |
| 9 return x; | |
| 10 } | |
| 11 | |
| 12 class Foo { | |
| 13 var x; | |
| 14 } | |
| 15 | |
| 16 List<String> stops = []; | |
| 17 List<String> expected = [ | |
| 18 "$file:${LINE_A+0}:5", | |
| 19 "$file:${LINE_A+1}:15", | |
| 20 "$file:${LINE_A+2}:3" | |
| 21 ]; | |
| 22 | |
| 23 var tests = [ | |
| 24 hasPausedAtStart, | |
| 25 setBreakpointAtLine(LINE_A), | |
| 26 runStepThroughProgramRecordingStops(stops), | |
| 27 checkRecordedStops(stops, expected) | |
| 28 ]; | |
| 29 | |
| 30 main(args) { | |
| 31 runIsolateTestsSynchronous(args, tests, | |
| 32 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true); | |
| 33 } | |
| OLD | NEW |