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

Side by Side Diff: runtime/observatory/tests/service/step_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
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 11 matching lines...) Expand all
29 } 33 }
30 }); 34 });
31 isolate.resume(); 35 isolate.resume();
32 return completer.future; 36 return completer.future;
33 } 37 }
34 38
35 var tests = [hasPausedAtStart, setBreakpointAtLine(LINE_A), stepThroughProgram]; 39 var tests = [hasPausedAtStart, setBreakpointAtLine(LINE_A), stepThroughProgram];
36 40
37 main(args) => runIsolateTestsSynchronous(args, tests, 41 main(args) => runIsolateTestsSynchronous(args, tests,
38 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true); 42 testeeConcurrent: code, pause_on_start: true, pause_on_exit: true);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698