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

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

Issue 2680303002: Kernel debugging; service tests (Closed)
Patch Set: Changes based on feedback. Also fixed regress_28443_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 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'test_helper.dart';
6 import 'service_test_common.dart';
7
8 const int LINE_A = 12;
9 const String file = "next_through_assign_int_test.dart";
10
11 code() {
12 int a;
13 int b;
14 a = b = 42;
15 print(a);
16 print(b);
17 a = 42;
18 print(a);
19 int d = 42;
20 print(d);
21 int e = 41, f, g = 42;
22 print(e);
23 print(f);
24 print(g);
25 }
26
27 List<String> stops = [];
28 List<String> expected = [
29 "$file:${LINE_A+0}:7",
30 "$file:${LINE_A+1}:7",
31 "$file:${LINE_A+2}:7",
32 "$file:${LINE_A+3}:3",
33 "$file:${LINE_A+4}:3",
34 "$file:${LINE_A+5}:3",
35 "$file:${LINE_A+6}:3",
36 "$file:${LINE_A+7}:9",
37 "$file:${LINE_A+8}:3",
38 "$file:${LINE_A+9}:9",
39 "$file:${LINE_A+9}:15",
40 "$file:${LINE_A+9}:20",
41 "$file:${LINE_A+10}:3",
42 "$file:${LINE_A+11}:3",
43 "$file:${LINE_A+12}:3",
44 "$file:${LINE_A+13}:1"
45 ];
46
47 var tests = [
48 hasPausedAtStart,
49 setBreakpointAtLine(LINE_A),
50 runStepThroughProgramRecordingStops(stops),
51 checkRecordedStops(stops, expected)
52 ];
53
54 main(args) {
55 runIsolateTestsSynchronous(args, tests,
56 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true);
57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698