Index: runtime/observatory/tests/service/break_on_function_test.dart |
diff --git a/runtime/observatory/tests/service/break_on_function_test.dart b/runtime/observatory/tests/service/break_on_function_test.dart |
index e428b25e24b355c175e2b552a81b856cbf13e561..128322c7eddd285bf18e295c257cf1558e875a98 100644 |
--- a/runtime/observatory/tests/service/break_on_function_test.dart |
+++ b/runtime/observatory/tests/service/break_on_function_test.dart |
@@ -11,7 +11,8 @@ import 'dart:developer'; |
const int LINE_A = 14; |
-testFunction(flag) { // Line A. |
+testFunction(flag) { |
+ // Line A. |
if (flag) { |
print("Yes"); |
} else { |
@@ -27,29 +28,28 @@ testMain() { |
} |
var tests = [ |
- |
-hasStoppedAtBreakpoint, |
+ hasStoppedAtBreakpoint, |
// Add breakpoint |
-(Isolate isolate) async { |
- var rootLib = await isolate.rootLibrary.load(); |
- var function = rootLib.functions.singleWhere((f) => f.name == 'testFunction'); |
- |
- var bpt = await isolate.addBreakpointAtEntry(function); |
- expect(bpt is Breakpoint, isTrue); |
- print(bpt); |
-}, |
+ (Isolate isolate) async { |
+ var rootLib = await isolate.rootLibrary.load(); |
+ var function = |
+ rootLib.functions.singleWhere((f) => f.name == 'testFunction'); |
-resumeIsolate, |
+ var bpt = await isolate.addBreakpointAtEntry(function); |
+ expect(bpt is Breakpoint, isTrue); |
+ print(bpt); |
+ }, |
-hasStoppedAtBreakpoint, |
-stoppedAtLine(LINE_A), |
-resumeIsolate, |
+ resumeIsolate, |
-hasStoppedAtBreakpoint, |
-stoppedAtLine(LINE_A), |
-resumeIsolate, |
+ hasStoppedAtBreakpoint, |
+ stoppedAtLine(LINE_A), |
+ resumeIsolate, |
+ hasStoppedAtBreakpoint, |
+ stoppedAtLine(LINE_A), |
+ resumeIsolate, |
]; |
main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain); |