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_function_expression_test.dart"; | |
| 6 | |
| 7 codeXYZ(int i) { | |
| 8 innerOne() { | |
| 9 return i * i; | |
| 10 } | |
| 11 return innerOne(); | |
| 12 } | |
| 13 | |
| 14 code() { | |
| 15 codeXYZ(42); | |
| 16 } | |
| 17 | |
| 18 List<String> stops = []; | |
| 19 List<String> expected = [ | |
| 20 "$file:${LINE_A+0}:13", | |
| 21 "$file:${LINE_A+1}:3", | |
| 22 "$file:${LINE_A+4}:18", | |
| 23 "$file:${LINE_A+4}:3" | |
| 24 ]; | |
| 25 | |
| 26 var tests = [ | |
| 27 hasPausedAtStart, | |
| 28 setBreakpointAtLine(LINE_A), | |
| 29 runStepThroughProgramRecordingStops(stops), | |
| 30 checkRecordedStops(stops, expected) | |
| 31 ]; | |
| 32 | |
| 33 main(args) { | |
| 34 runIsolateTestsSynchronous(args, tests, | |
| 35 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true); | |
| 36 } | |
| OLD | NEW |