Index: tests/lib_strong/async/zone_create_timer_test.dart |
diff --git a/tests/lib_strong/async/zone_create_timer_test.dart b/tests/lib_strong/async/zone_create_timer_test.dart |
index 4935522110c93b2f33d1df61ddd9640ee6353736..337e628f0e0c20815c92f834c4ff7c6e3e18e547 100644 |
--- a/tests/lib_strong/async/zone_create_timer_test.dart |
+++ b/tests/lib_strong/async/zone_create_timer_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 0", |
- "createTimer" ], |
- events); |
+ Expect.listEquals([ |
+ "forked.createTimer", |
+ "after createTimer", |
+ "wrapped function 0", |
+ "createTimer" |
+ ], events); |
asyncEnd(); |
}); |
-} |
+} |