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

Unified Diff: tests/lib/async/zone_create_periodic_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/async/zone_create_periodic_timer_test.dart
diff --git a/tests/lib/async/zone_create_periodic_timer_test.dart b/tests/lib/async/zone_create_periodic_timer_test.dart
index 5c9232bcb21529fdf36a136ae4756ddd1b66995a..f9995b21178ab7e7a654ab1d85b5141b1b6719fe 100644
--- a/tests/lib/async/zone_create_periodic_timer_test.dart
+++ b/tests/lib/async/zone_create_periodic_timer_test.dart
@@ -14,19 +14,18 @@ main() {
Zone forked;
forked = Zone.current.fork(specification: new ZoneSpecification(
createPeriodicTimer: (Zone self, ZoneDelegate parent, Zone origin,
- Duration period, f(Timer timer)) {
- events.add("forked.createPeriodicTimer");
- return parent.createPeriodicTimer(origin, period, (Timer timer) {
- events.add("wrapped function ${period.inMilliseconds}");
- f(timer);
- });
- }));
+ Duration period, f(Timer timer)) {
+ events.add("forked.createPeriodicTimer");
+ return parent.createPeriodicTimer(origin, period, (Timer timer) {
+ events.add("wrapped function ${period.inMilliseconds}");
+ f(timer);
+ });
+ }));
asyncStart();
int tickCount = 0;
forked.run(() {
- new Timer.periodic(const Duration(milliseconds: 5),
- (Timer timer) {
+ new Timer.periodic(const Duration(milliseconds: 5), (Timer timer) {
events.add("periodic Timer $tickCount");
Expect.identical(forked, Zone.current);
tickCount++;
@@ -42,13 +41,18 @@ main() {
events.add("after createPeriodicTimer");
done.future.whenComplete(() {
- Expect.listEquals(
- [ "forked.createPeriodicTimer", "after createPeriodicTimer",
- "wrapped function 5", "periodic Timer 0",
- "wrapped function 5", "periodic Timer 1",
- "wrapped function 5", "periodic Timer 2",
- "wrapped function 5", "periodic Timer 3" ],
- events);
+ Expect.listEquals([
+ "forked.createPeriodicTimer",
+ "after createPeriodicTimer",
+ "wrapped function 5",
+ "periodic Timer 0",
+ "wrapped function 5",
+ "periodic Timer 1",
+ "wrapped function 5",
+ "periodic Timer 2",
+ "wrapped function 5",
+ "periodic Timer 3"
+ ], events);
asyncEnd();
});
-}
+}

Powered by Google App Engine
This is Rietveld 408576698