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

Side by Side Diff: runtime/observatory/tests/service/next_through_simple_linear_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_simple_linear_test.dart";
10
11 code() {
12 print("Hello, World!"); // LINE_A
13 print("Stop here too!");
14 print("Goodbye, world!");
15 }
16
17 List<String> stops = [];
18 List<String> expected = [
19 "$file:${LINE_A+0}:3",
20 "$file:${LINE_A+1}:3",
21 "$file:${LINE_A+2}:3"
22 ];
23
24 var tests = [
25 hasPausedAtStart,
26 setBreakpointAtLine(LINE_A),
27 runStepThroughProgramRecordingStops(stops),
28 checkRecordedStops(stops, expected)
29 ];
30
31 main(args) {
32 runIsolateTestsSynchronous(args, tests,
33 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true);
34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698