Index: runtime/observatory/tests/service/developer_extension_test.dart |
diff --git a/runtime/observatory/tests/service/developer_extension_test.dart b/runtime/observatory/tests/service/developer_extension_test.dart |
index f134606fb66b6bdf0b2ab4dac38d6b785cd4ba9d..1fa04bd263a0fd313642ca4beb8e1646a599caa5 100644 |
--- a/runtime/observatory/tests/service/developer_extension_test.dart |
+++ b/runtime/observatory/tests/service/developer_extension_test.dart |
@@ -55,6 +55,7 @@ Future<ServiceExtensionResponse> LanguageErrorHandler(String method, |
void test() { |
registerExtension('__delay', Handler); |
+ debugger(); |
registerExtension('__error', Handler); |
registerExtension('__exception', Handler); |
registerExtension('__null', Handler); |
@@ -71,6 +72,17 @@ void test() { |
} |
var tests = [ |
+ hasStoppedAtBreakpoint, |
+ (Isolate isolate) async { |
+ await isolate.load(); |
+ expect(isolate.extensionRPCs.length, 1); |
+ expect(isolate.extensionRPCs[0], equals('__delay')); |
+ }, |
+ resumeIsolateAndAwaitEvent(VM.kIsolateStream, (ServiceEvent event) { |
+ // Check that we received an event when '__error' was registered. |
+ expect(event.kind, equals(ServiceEvent.kServiceExtensionAdded)); |
+ expect(event.extensionRPC, equals('__error')); |
+ }), |
// Initial. |
(Isolate isolate) async { |
var result; |
@@ -130,4 +142,4 @@ var tests = [ |
}, |
]; |
-main(args) async => runIsolateTests(args, tests, testeeBefore:test); |
+main(args) async => runIsolateTests(args, tests, testeeConcurrent:test); |