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

Unified Diff: runtime/observatory/tests/service/debugger_inspect_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: Polish 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/debugger_inspect_test.dart
diff --git a/runtime/observatory/tests/service/debugger_inspect_test.dart b/runtime/observatory/tests/service/debugger_inspect_test.dart
index e6b8e9e00ff08287edc2aab0d051b40d728bf123..139aba3819745f1590e71b546501dc453e4eafe7 100644
--- a/runtime/observatory/tests/service/debugger_inspect_test.dart
+++ b/runtime/observatory/tests/service/debugger_inspect_test.dart
@@ -22,12 +22,11 @@ var tests = [
(Isolate isolate) async {
Completer completer = new Completer();
+ var stream = await isolate.vm.getDebugEventStream();
var subscription;
- subscription = isolate.vm.events.stream.listen((ServiceEvent event) {
- print(event);
+ subscription = stream.listen((ServiceEvent event) {
if (event.kind == ServiceEvent.kInspect) {
expect((event.inspectee as Instance).clazz.name, equals('Point'));
-
subscription.cancel();
completer.complete();
}

Powered by Google App Engine
This is Rietveld 408576698