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 = 8; | |
| 5 const String file = "next_through_simple_linear_test.dart"; | |
| 6 | |
| 7 code() { | |
| 8 print("Hello, World!"); // LINE_A | |
| 9 print("Stop here too!"); | |
| 10 print("Goodbye, world!"); | |
| 11 } | |
| 12 | |
| 13 List<String> stops = []; | |
| 14 List<String> expected = [ | |
| 15 "$file:${LINE_A+0}:3", | |
| 16 "$file:${LINE_A+1}:3", | |
| 17 "$file:${LINE_A+2}:3" | |
| 18 ]; | |
| 19 | |
| 20 var tests = [ | |
| 21 hasPausedAtStart, | |
| 22 setBreakpointAtLine(LINE_A), | |
| 23 runStepThroughProgramRecordingStops(stops), | |
| 24 checkRecordedStops(stops, expected) | |
| 25 ]; | |
| 26 | |
| 27 main(args) { | |
| 28 runIsolateTestsSynchronous(args, tests, | |
| 29 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true); | |
| 30 } | |
| OLD | NEW |