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

Unified Diff: tests/lib_strong/async/zone_create_timer_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_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();
});
-}
+}

Powered by Google App Engine
This is Rietveld 408576698