Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Side by Side Diff: runtime/observatory/tests/service/next_through_assign_int_test.dart

Issue 2680303002: Kernel debugging; service tests (Closed)
Patch Set: New failing test Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 import 'test_helper.dart';
Kevin Millikin (Google) 2017/02/08 15:37:51 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_assign_int_test.dart";
6
7 code() {
8 int a;
9 int b;
10 a = b = 42;
11 print(a);
12 print(b);
13 a = 42;
14 print(a);
15 int d = 42;
16 print(d);
17 int e = 41, f, g = 42;
18 print(e);
19 print(f);
20 print(g);
21 }
22
23 List<String> stops = [];
24 List<String> expected = [
25 "$file:${LINE_A+0}:7",
26 "$file:${LINE_A+1}:7",
27 "$file:${LINE_A+2}:7",
28 "$file:${LINE_A+3}:3",
29 "$file:${LINE_A+4}:3",
30 "$file:${LINE_A+5}:3",
31 "$file:${LINE_A+6}:3",
32 "$file:${LINE_A+7}:9",
33 "$file:${LINE_A+8}:3",
34 "$file:${LINE_A+9}:9",
35 "$file:${LINE_A+9}:15",
36 "$file:${LINE_A+9}:20",
37 "$file:${LINE_A+10}:3",
38 "$file:${LINE_A+11}:3",
39 "$file:${LINE_A+12}:3",
40 "$file:${LINE_A+13}:1"
41 ];
42
43 var tests = [
44 hasPausedAtStart,
45 setBreakpointAtLine(LINE_A),
46 runStepThroughProgramRecordingStops(stops),
47 checkRecordedStops(stops, expected)
48 ];
49
50 main(args) {
51 runIsolateTestsSynchronous(args, tests,
52 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true);
53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698