Index: runtime/observatory/tests/service/debugging_test.dart |
diff --git a/runtime/observatory/tests/service/debugging_test.dart b/runtime/observatory/tests/service/debugging_test.dart |
index a4ce042f4bef98a74a08a4ed10fe945bcb87b8a2..9685707122af70f819a9a67910f52fe7f65ae155 100644 |
--- a/runtime/observatory/tests/service/debugging_test.dart |
+++ b/runtime/observatory/tests/service/debugging_test.dart |
@@ -30,7 +30,7 @@ var tests = [ |
Completer completer = new Completer(); |
var subscription; |
subscription = isolate.vm.events.stream.listen((ServiceEvent event) { |
- if (event.eventType == ServiceEvent.kPauseInterrupted) { |
+ if (event.kind == ServiceEvent.kPauseInterrupted) { |
subscription.cancel(); |
completer.complete(); |
} |
@@ -44,7 +44,7 @@ var tests = [ |
Completer completer = new Completer(); |
var subscription; |
subscription = isolate.vm.events.stream.listen((ServiceEvent event) { |
- if (event.eventType == ServiceEvent.kResume) { |
+ if (event.kind == ServiceEvent.kResume) { |
subscription.cancel(); |
completer.complete(); |
} |
@@ -61,7 +61,7 @@ var tests = [ |
Completer completer = new Completer(); |
var subscription; |
subscription = isolate.vm.events.stream.listen((ServiceEvent event) { |
- if (event.eventType == ServiceEvent.kPauseBreakpoint) { |
+ if (event.kind == ServiceEvent.kPauseBreakpoint) { |
print('Breakpoint reached'); |
subscription.cancel(); |
completer.complete(); |
@@ -100,7 +100,7 @@ var tests = [ |
Completer completer = new Completer(); |
var subscription; |
subscription = isolate.vm.events.stream.listen((ServiceEvent event) { |
- if (event.eventType == ServiceEvent.kPauseBreakpoint) { |
+ if (event.kind == ServiceEvent.kPauseBreakpoint) { |
print('Breakpoint reached'); |
subscription.cancel(); |
completer.complete(); |
@@ -128,7 +128,7 @@ var tests = [ |
Completer completer = new Completer(); |
var subscription; |
subscription = isolate.vm.events.stream.listen((ServiceEvent event) { |
- if (event.eventType == ServiceEvent.kBreakpointRemoved) { |
+ if (event.kind == ServiceEvent.kBreakpointRemoved) { |
print('Breakpoint removed'); |
expect(isolate.breakpoints.length, equals(0)); |
subscription.cancel(); |
@@ -147,7 +147,7 @@ var tests = [ |
Completer completer = new Completer(); |
var subscription; |
subscription = isolate.vm.events.stream.listen((ServiceEvent event) { |
- if (event.eventType == ServiceEvent.kResume) { |
+ if (event.kind == ServiceEvent.kResume) { |
subscription.cancel(); |
completer.complete(); |
} |
@@ -162,7 +162,7 @@ var tests = [ |
Completer completer = new Completer(); |
var subscription; |
subscription = isolate.vm.events.stream.listen((ServiceEvent event) { |
- if (event.eventType == ServiceEvent.kPauseBreakpoint) { |
+ if (event.kind == ServiceEvent.kPauseBreakpoint) { |
print('Breakpoint reached'); |
subscription.cancel(); |
completer.complete(); |