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(); |
- }); |
+ }); |
} |