Index: tests/lib/async/zone_create_timer2_test.dart |
diff --git a/tests/lib/async/zone_create_timer2_test.dart b/tests/lib/async/zone_create_timer2_test.dart |
index c7ccaab308b8e2974fc4df91f39d963fc4f65e8c..39423e5d5d31db0c8dd14ccc309d156016141843 100644 |
--- a/tests/lib/async/zone_create_timer2_test.dart |
+++ b/tests/lib/async/zone_create_timer2_test.dart |
@@ -12,15 +12,14 @@ main() { |
Expect.identical(Zone.ROOT, Zone.current); |
Zone forked; |
- forked = Zone.current.fork(specification: new ZoneSpecification( |
- createTimer: (Zone self, ZoneDelegate parent, Zone origin, |
- Duration duration, f()) { |
- events.add("forked.createTimer"); |
- return parent.createTimer(origin, duration, () { |
- events.add("wrapped function ${duration.inMilliseconds}"); |
- f(); |
- }); |
- })); |
+ forked = Zone.current.fork(specification: new ZoneSpecification(createTimer: |
+ (Zone self, ZoneDelegate parent, Zone origin, Duration duration, f()) { |
+ events.add("forked.createTimer"); |
+ return parent.createTimer(origin, duration, () { |
+ events.add("wrapped function ${duration.inMilliseconds}"); |
+ f(); |
+ }); |
+ })); |
asyncStart(); |
forked.run(() { |
@@ -35,10 +34,12 @@ main() { |
events.add("after createTimer"); |
done.future.whenComplete(() { |
- Expect.listEquals( |
- [ "forked.createTimer", "after createTimer", "wrapped function 20", |
- "createTimer" ], |
- events); |
+ Expect.listEquals([ |
+ "forked.createTimer", |
+ "after createTimer", |
+ "wrapped function 20", |
+ "createTimer" |
+ ], events); |
asyncEnd(); |
}); |
-} |
+} |