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 = 11; | |
| 5 const String file = "next_through_simple_linear_2_test.dart"; | |
| 6 | |
| 7 code() { | |
| 8 var a = getA(); | |
| 9 var b = getB(); | |
| 10 | |
| 11 print("Hello, World!"); // LINE_A | |
| 12 print("a: $a; b: $b"); | |
| 13 print("Goodbye, world!"); | |
| 14 } | |
| 15 | |
| 16 getA() => true; | |
| 17 getB() => 42; | |
| 18 | |
| 19 List<String> stops = []; | |
| 20 List<String> expected = [ | |
| 21 "$file:$LINE_A:3", | |
| 22 "$file:${LINE_A+1}:23", | |
| 23 "$file:${LINE_A+1}:3", | |
| 24 "$file:${LINE_A+2}:3" | |
| 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 |