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

Unified Diff: tests/lib_strong/async/zone_run_unary_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_run_unary_test.dart
diff --git a/tests/lib_strong/async/zone_run_unary_test.dart b/tests/lib_strong/async/zone_run_unary_test.dart
index c9dea3e9fd46cd2bcad9f10a941375c76b4c3f15..7005613dcee27936d4dbed7328d624b870788977 100644
--- a/tests/lib_strong/async/zone_run_unary_test.dart
+++ b/tests/lib_strong/async/zone_run_unary_test.dart
@@ -14,13 +14,13 @@ main() {
Expect.identical(Zone.ROOT, Zone.current);
Zone forked = Zone.current.fork(specification: new ZoneSpecification(
runUnary: (Zone self, ZoneDelegate parent, Zone origin, f(arg), arg) {
- // 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.current, Zone.ROOT);
- events.add("forked.run1");
- if (shouldForward) return parent.runUnary(origin, f, arg + 1);
- return 42;
- }));
+ // 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.current, Zone.ROOT);
+ events.add("forked.run1");
+ if (shouldForward) return parent.runUnary(origin, f, arg + 1);
+ return 42;
+ }));
events.add("zone forked");
Zone expectedZone = forked;
@@ -55,11 +55,18 @@ main() {
Expect.equals(-499, result);
done.future.whenComplete(() {
- Expect.listEquals(
- ["zone forked", "forked.run1", "run closure", "executed run",
- "forked.run1", "executed run2", "forked.run1", "run closure 2",
- "after nested scheduleMicrotask", "run closure 3"],
- events);
+ Expect.listEquals([
+ "zone forked",
+ "forked.run1",
+ "run closure",
+ "executed run",
+ "forked.run1",
+ "executed run2",
+ "forked.run1",
+ "run closure 2",
+ "after nested scheduleMicrotask",
+ "run closure 3"
+ ], events);
asyncEnd();
});
-}
+}

Powered by Google App Engine
This is Rietveld 408576698