| 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 128322c7eddd285bf18e295c257cf1558e875a98..e428b25e24b355c175e2b552a81b856cbf13e561 100644
|
| --- a/runtime/observatory/tests/service/break_on_function_test.dart
|
| +++ b/runtime/observatory/tests/service/break_on_function_test.dart
|
| @@ -11,8 +11,7 @@ import 'dart:developer';
|
|
|
| const int LINE_A = 14;
|
|
|
| -testFunction(flag) {
|
| - // Line A.
|
| +testFunction(flag) { // Line A.
|
| if (flag) {
|
| print("Yes");
|
| } else {
|
| @@ -28,28 +27,29 @@ 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');
|
| +(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);
|
| +},
|
|
|
| - var bpt = await isolate.addBreakpointAtEntry(function);
|
| - expect(bpt is Breakpoint, isTrue);
|
| - print(bpt);
|
| - },
|
| +resumeIsolate,
|
|
|
| - resumeIsolate,
|
| +hasStoppedAtBreakpoint,
|
| +stoppedAtLine(LINE_A),
|
| +resumeIsolate,
|
|
|
| - hasStoppedAtBreakpoint,
|
| - stoppedAtLine(LINE_A),
|
| - resumeIsolate,
|
| +hasStoppedAtBreakpoint,
|
| +stoppedAtLine(LINE_A),
|
| +resumeIsolate,
|
|
|
| - hasStoppedAtBreakpoint,
|
| - stoppedAtLine(LINE_A),
|
| - resumeIsolate,
|
| ];
|
|
|
| main(args) => runIsolateTests(args, tests, testeeConcurrent: testMain);
|
|
|