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

Unified Diff: tests/lib_strong/async/zone_register_callback_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_register_callback_test.dart
diff --git a/tests/lib_strong/async/zone_register_callback_test.dart b/tests/lib_strong/async/zone_register_callback_test.dart
index e05ed8e14254367f4f9aed768102737458de93f2..b4691d1550c73d2ff3fcdabff82482294d2cf4bf 100644
--- a/tests/lib_strong/async/zone_register_callback_test.dart
+++ b/tests/lib_strong/async/zone_register_callback_test.dart
@@ -15,16 +15,16 @@ main() {
Expect.identical(Zone.ROOT, Zone.current);
Zone forked = Zone.current.fork(specification: new ZoneSpecification(
registerCallback: (Zone self, ZoneDelegate parent, Zone origin, f()) {
- // 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);
- // Note that not forwarding is completely legal, though not encouraged.
- var capturedValue = valueToCapture;
- return parent.registerCallback(origin, () {
- restoredValue = capturedValue;
- return f();
- });
- }));
+ // 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);
+ // Note that not forwarding is completely legal, though not encouraged.
+ var capturedValue = valueToCapture;
+ return parent.registerCallback(origin, () {
+ restoredValue = capturedValue;
+ return f();
+ });
+ }));
valueToCapture = 499;
var fun = () => 99;
@@ -36,4 +36,4 @@ main() {
var result = registered();
Expect.equals(99, result);
Expect.equals(499, restoredValue);
-}
+}

Powered by Google App Engine
This is Rietveld 408576698