| Index: tests/lib/async/zone_bind_callback_unary_test.dart
|
| diff --git a/tests/lib/async/zone_bind_callback_unary_test.dart b/tests/lib/async/zone_bind_callback_unary_test.dart
|
| index 5753e0959d5650edac9e352de1fcdf899dd5653e..3f315e312db6b8dc50abd0c1615412794fc2b8e6 100644
|
| --- a/tests/lib/async/zone_bind_callback_unary_test.dart
|
| +++ b/tests/lib/async/zone_bind_callback_unary_test.dart
|
| @@ -14,17 +14,18 @@ main() {
|
|
|
| Expect.identical(Zone.ROOT, Zone.current);
|
| Zone forked = Zone.current.fork(specification: new ZoneSpecification(
|
| - registerUnaryCallback: (Zone self, ZoneDelegate parent, Zone origin, f(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);
|
| - // Note that not forwarding is completely legal, though not encouraged.
|
| - var capturedValue = valueToCapture;
|
| - return parent.registerUnaryCallback(origin, (arg) {
|
| - restoredValue = capturedValue;
|
| - return f(arg);
|
| - });
|
| - }));
|
| + registerUnaryCallback:
|
| + (Zone self, ZoneDelegate parent, Zone origin, f(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);
|
| + // Note that not forwarding is completely legal, though not encouraged.
|
| + var capturedValue = valueToCapture;
|
| + return parent.registerUnaryCallback(origin, (arg) {
|
| + restoredValue = capturedValue;
|
| + return f(arg);
|
| + });
|
| + }));
|
|
|
| valueToCapture = 499;
|
| var fun = (x) {
|
| @@ -39,4 +40,4 @@ main() {
|
| var result = bound(399);
|
| Expect.equals(498, result);
|
| Expect.equals(499, restoredValue);
|
| -}
|
| +}
|
|
|