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

Side by Side Diff: runtime/observatory/tests/service/step_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
« no previous file with comments | « runtime/observatory/tests/service/service_test_common.dart ('k') | runtime/vm/kernel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
1 import 'dart:async'; 5 import 'dart:async';
2 import 'test_helper.dart'; 6 import 'test_helper.dart';
3 import 'service_test_common.dart'; 7 import 'service_test_common.dart';
4 import 'package:observatory/service_io.dart'; 8 import 'package:observatory/service_io.dart';
5 import 'package:unittest/unittest.dart'; 9 import 'package:unittest/unittest.dart';
6 10
7 const int LINE_A = 10; 11 const int LINE_A = 14;
8 12
9 code() { 13 code() {
10 var x = {}; // LINE_A 14 var x = {}; // LINE_A
11 } 15 }
12 16
13 Future<Isolate> stepThroughProgram(Isolate isolate) async { 17 Future<Isolate> stepThroughProgram(Isolate isolate) async {
14 Completer completer = new Completer(); 18 Completer completer = new Completer();
15 int pauseEventsSeen = 0; 19 int pauseEventsSeen = 0;
16 20
17 await subscribeToStream(isolate.vm, VM.kDebugStream, 21 await subscribeToStream(isolate.vm, VM.kDebugStream,
(...skipping 14 matching lines...) Expand all
32 return completer.future; 36 return completer.future;
33 } 37 }
34 38
35 var tests = [hasPausedAtStart, 39 var tests = [hasPausedAtStart,
36 markDartColonLibrariesDebuggable, 40 markDartColonLibrariesDebuggable,
37 setBreakpointAtLine(LINE_A), 41 setBreakpointAtLine(LINE_A),
38 stepThroughProgram]; 42 stepThroughProgram];
39 43
40 main(args) => runIsolateTestsSynchronous(args, tests, 44 main(args) => runIsolateTestsSynchronous(args, tests,
41 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true); 45 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true);
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/service_test_common.dart ('k') | runtime/vm/kernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698