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

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

Issue 2759973004: Fix observatory tests broken by running dartfmt. Temporarily reverted formatting for evaluate_activ… (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_stack_contents_test.dart
diff --git a/runtime/observatory/tests/service/causal_async_stack_contents_test.dart b/runtime/observatory/tests/service/causal_async_stack_contents_test.dart
index cfdc667aa9d354a17a576bfc6b4479c3cef040af..99b10b2b1ae5fee0331a8d2db619777a211f6713 100644
--- a/runtime/observatory/tests/service/causal_async_stack_contents_test.dart
+++ b/runtime/observatory/tests/service/causal_async_stack_contents_test.dart
@@ -16,18 +16,18 @@ const LINE_B = 30;
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 = [
@@ -41,7 +41,6 @@ var tests = [
resumeIsolate,
hasStoppedAtBreakpoint,
stoppedAtLine(LINE_A),
-
(Isolate isolate) async {
ServiceMap stack = await isolate.getStack();
// Has causal frames (we are inside an async function)
@@ -51,11 +50,9 @@ var tests = [
expect(asyncStack[1].kind, equals(M.FrameKind.asyncSuspensionMarker));
expect(asyncStack[2].toString(), contains('testMain'));
},
-
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)
@@ -74,6 +71,5 @@ 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