Index: runtime/observatory/tests/service/causal_async_stack_presence_test.dart |
diff --git a/runtime/observatory/tests/service/causal_async_stack_presence_test.dart b/runtime/observatory/tests/service/causal_async_stack_presence_test.dart |
index eb00b2ebf9910ee0c52002d5bbca17ae200981b9..2af9c8f74818c113cd89248ab3ad4f1d101e9621 100644 |
--- a/runtime/observatory/tests/service/causal_async_stack_presence_test.dart |
+++ b/runtime/observatory/tests/service/causal_async_stack_presence_test.dart |
@@ -15,18 +15,18 @@ const LINE_B = 29; |
foobar() { |
debugger(); |
- print('foobar'); // LINE_C. |
+ print('foobar'); // LINE_C. |
} |
helper() async { |
debugger(); |
- print('helper'); // LINE_A. |
+ print('helper'); // LINE_A. |
foobar(); |
} |
testMain() { |
debugger(); |
- helper(); // LINE_B. |
+ helper(); // LINE_B. |
} |
var tests = [ |
@@ -40,14 +40,17 @@ var tests = [ |
resumeIsolate, |
hasStoppedAtBreakpoint, |
stoppedAtLine(LINE_A), |
+ |
(Isolate isolate) async { |
ServiceMap stack = await isolate.getStack(); |
// Has causal frames (we are inside an async function) |
expect(stack['asyncCausalFrames'], isNotNull); |
}, |
+ |
resumeIsolate, |
hasStoppedAtBreakpoint, |
stoppedAtLine(LINE_C), |
+ |
(Isolate isolate) async { |
ServiceMap stack = await isolate.getStack(); |
// Has causal frames (we are inside a function called by an async function) |
@@ -55,5 +58,6 @@ var tests = [ |
}, |
]; |
-main(args) => |
- runIsolateTestsSynchronous(args, tests, testeeConcurrent: testMain); |
+main(args) => runIsolateTestsSynchronous(args, |
+ tests, |
+ testeeConcurrent: testMain); |