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

Unified Diff: runtime/observatory/tests/service/pause_on_start_then_step_test.dart

Issue 1286493003: Revert "Allow stepping when paused at isolate start." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/tests/service/pause_on_start_then_step_test.dart
diff --git a/runtime/observatory/tests/service/pause_on_start_then_step_test.dart b/runtime/observatory/tests/service/pause_on_start_then_step_test.dart
deleted file mode 100644
index 7f9e91b0bdfa0001bb1b520436415b348c30b1ee..0000000000000000000000000000000000000000
--- a/runtime/observatory/tests/service/pause_on_start_then_step_test.dart
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-// VMOptions=--compile_all --error_on_bad_type --error_on_bad_override
-
-import 'package:observatory/service_io.dart';
-import 'package:unittest/unittest.dart';
-import 'test_helper.dart';
-import 'dart:async';
-
-void testMain() {
- print('Hello');
- exit(0);
-}
-
-var tests = [
-
-(Isolate isolate) async {
- Completer completer = new Completer();
- var stream = await isolate.vm.getEventStream(VM.kDebugStream);
- var subscription;
- subscription = stream.listen((ServiceEvent event) {
- if (event.kind == ServiceEvent.kPauseStart) {
- print('Received PauseStart');
- subscription.cancel();
- completer.complete();
- }
- });
-
- if (isolate.pauseEvent != null &&
- isolate.pauseEvent.kind == ServiceEvent.kPauseStart) {
- // Wait for the isolate to hit PauseStart.
- subscription.cancel();
- } else {
- await completer.future;
- }
-
- completer = new Completer();
- stream = await isolate.vm.getEventStream(VM.kDebugStream);
- subscription = stream.listen((ServiceEvent event) {
- if (event.kind == ServiceEvent.kPauseBreakpoint) {
- print('Received PauseBreakpoint');
- subscription.cancel();
- completer.complete();
- }
- });
-
- print('Stepping...');
- isolate.stepInto();
-
- // Wait for the isolate to hit PauseBreakpoint.
- await completer.future;
-},
-
-];
-
-main(args) => runIsolateTests(args, tests,
- testeeConcurrent: testMain,
- pause_on_start: true, pause_on_exit: true);

Powered by Google App Engine
This is Rietveld 408576698