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

Unified Diff: tests/lib/async/zone_create_timer2_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/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();
});
-}
+}

Powered by Google App Engine
This is Rietveld 408576698