Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Unified Diff: runtime/observatory/tests/service/causal_async_star_stack_presence_test.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/tests/service/causal_async_star_stack_presence_test.dart
diff --git a/runtime/observatory/tests/service/causal_async_star_stack_presence_test.dart b/runtime/observatory/tests/service/causal_async_star_stack_presence_test.dart
index aef64ebce4aa056d1c31274461a1d03e231d86db..6c8d40553209cc3d638850349b6ca6a1a3733aee 100644
--- a/runtime/observatory/tests/service/causal_async_star_stack_presence_test.dart
+++ b/runtime/observatory/tests/service/causal_async_star_stack_presence_test.dart
@@ -15,14 +15,14 @@ const LINE_C = 20;
foobar() async* {
debugger();
- yield 1; // LINE_B.
+ yield 1; // LINE_B.
debugger();
- yield 2; // LINE_C.
+ yield 2; // LINE_C.
}
helper() async {
debugger();
- print('helper'); // LINE_A.
+ print('helper'); // LINE_A.
await for (var i in foobar()) {
print('helper $i');
}
@@ -43,14 +43,17 @@ var tests = [
resumeIsolate,
hasStoppedAtBreakpoint,
stoppedAtLine(LINE_B),
+
(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)
@@ -58,5 +61,6 @@ var tests = [
},
];
-main(args) =>
- runIsolateTestsSynchronous(args, tests, testeeConcurrent: testMain);
+main(args) => runIsolateTestsSynchronous(args,
+ tests,
+ testeeConcurrent: testMain);

Powered by Google App Engine
This is Rietveld 408576698