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

Unified Diff: tests/lib/async/intercept_schedule_microtask6_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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: tests/lib/async/intercept_schedule_microtask6_test.dart
diff --git a/tests/lib/async/intercept_schedule_microtask6_test.dart b/tests/lib/async/intercept_schedule_microtask6_test.dart
index 2380b762a5c188d38d6f7de07b41425a04534747..b301d1ec1c5ea58ff7d4d5ab6a625348b5d8de91 100644
--- a/tests/lib/async/intercept_schedule_microtask6_test.dart
+++ b/tests/lib/async/intercept_schedule_microtask6_test.dart
@@ -10,6 +10,7 @@ import 'catch_errors.dart';
class A {
add(x) => print(x);
}
+
var events = [];
body() {
@@ -36,19 +37,18 @@ main() {
// Test that runZonedScheduleMicrotask works when async, error and done
// are used.
- var result = runZonedScheduleMicrotask(
- body,
- onScheduleMicrotask: onAsyncHandler,
- onError: onErrorHandler);
+ var result = runZonedScheduleMicrotask(body,
+ onScheduleMicrotask: onAsyncHandler, onError: onErrorHandler);
events.add("after");
Timer.run(() {
- Expect.listEquals(
- ["body entry",
- "async handler", "async handler done",
- "after",
- "run async body",
- "error: foo"],
- events);
+ Expect.listEquals([
+ "body entry",
+ "async handler",
+ "async handler done",
+ "after",
+ "run async body",
+ "error: foo"
+ ], events);
asyncEnd();
- });
+ });
}

Powered by Google App Engine
This is Rietveld 408576698