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

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

Issue 2680303002: Kernel debugging; service tests (Closed)
Patch Set: Address comments Created 3 years, 9 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 = 11;
9 const String file = "next_through_new_test.dart";
10
11 code() {
12 var x = new Foo();
13 return x;
14 }
15
16 class Foo {
17 var x;
18 }
19
20 List<String> stops = [];
21 List<String> expected = [
22 "$file:${LINE_A+0}:5", // on '(' in 'code()'
23 "$file:${LINE_A+1}:15", // on 'Foo'
24 "$file:${LINE_A+2}:3" // on 'return'
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698