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

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

Issue 1217823009: Make VM event streams look like real dart streams. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge with master Created 5 years, 5 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_exceptions_test.dart
diff --git a/runtime/observatory/tests/service/pause_on_exceptions_test.dart b/runtime/observatory/tests/service/pause_on_exceptions_test.dart
index d8926fefaf87cfaacf97eb79ed5d0a4a3014804f..e5528bc775076803a3b5fc772f691f4c114fbf37 100644
--- a/runtime/observatory/tests/service/pause_on_exceptions_test.dart
+++ b/runtime/observatory/tests/service/pause_on_exceptions_test.dart
@@ -34,8 +34,9 @@ var tests = [
var onPaused = null;
var onResume = null;
+ var stream = await isolate.vm.getEventStream(VM.kDebugStream);
var subscription;
- subscription = isolate.vm.events.stream.listen((ServiceEvent event) {
+ subscription = stream.listen((ServiceEvent event) {
print("Event $event");
if (event.kind == ServiceEvent.kPauseException) {
if (onPaused == null) throw "Unexpected pause event $event";

Powered by Google App Engine
This is Rietveld 408576698