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

Unified Diff: tests/lib_strong/async/zone_fork_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_fork_test.dart
diff --git a/tests/lib_strong/async/zone_fork_test.dart b/tests/lib_strong/async/zone_fork_test.dart
index 883daffdfcef91e788c673316b884d52d45a7211..f3d98ea68a942ce76bbf6fb4a93f5e57f0185ab1 100644
--- a/tests/lib_strong/async/zone_fork_test.dart
+++ b/tests/lib_strong/async/zone_fork_test.dart
@@ -12,32 +12,31 @@ main() {
Expect.identical(Zone.ROOT, Zone.current);
Zone forked;
- forked = Zone.current.fork(specification: new ZoneSpecification(
- fork: (Zone self, ZoneDelegate parent, Zone origin,
- ZoneSpecification zoneSpecification, Map mapValues) {
- // The zone is still the same as when origin.run was invoked, which
- // is the root zone. (The origin zone hasn't been set yet).
- Expect.identical(Zone.ROOT, Zone.current);
- events.add("forked.fork");
- Function descriptionRun = zoneSpecification.run;
- ZoneSpecification modified = new ZoneSpecification.from(
- zoneSpecification,
- run: (self, parent, origin, f) {
- events.add("wrapped run");
- return descriptionRun(self, parent, origin, () {
- events.add("wrapped f");
- return f();
- });
- });
- return parent.fork(origin, modified, mapValues);
- }));
+ forked = Zone.current.fork(specification: new ZoneSpecification(fork:
+ (Zone self, ZoneDelegate parent, Zone origin,
+ ZoneSpecification zoneSpecification, Map mapValues) {
+ // The zone is still the same as when origin.run was invoked, which
+ // is the root zone. (The origin zone hasn't been set yet).
+ Expect.identical(Zone.ROOT, Zone.current);
+ events.add("forked.fork");
+ Function descriptionRun = zoneSpecification.run;
+ ZoneSpecification modified = new ZoneSpecification.from(zoneSpecification,
+ run: (self, parent, origin, f) {
+ events.add("wrapped run");
+ return descriptionRun(self, parent, origin, () {
+ events.add("wrapped f");
+ return f();
+ });
+ });
+ return parent.fork(origin, modified, mapValues);
+ }));
events.add("start");
Zone forkedChild = forked.fork(specification: new ZoneSpecification(
run: (Zone self, ZoneDelegate parent, Zone origin, f()) {
- events.add("executing child run");
- return parent.run(origin, f);
- }));
+ events.add("executing child run");
+ return parent.run(origin, f);
+ }));
events.add("after child fork");
Expect.identical(Zone.ROOT, Zone.current);
@@ -48,11 +47,14 @@ main() {
events.add("after child run");
- Expect.listEquals(
- [ "start",
- "forked.fork",
- "after child fork",
- "wrapped run", "executing child run", "wrapped f", "child run",
- "after child run" ],
- events);
-}
+ Expect.listEquals([
+ "start",
+ "forked.fork",
+ "after child fork",
+ "wrapped run",
+ "executing child run",
+ "wrapped f",
+ "child run",
+ "after child run"
+ ], events);
+}

Powered by Google App Engine
This is Rietveld 408576698