| Index: tests/lib/async/zone_bind_callback_test.dart
|
| diff --git a/tests/lib/async/zone_bind_callback_test.dart b/tests/lib/async/zone_bind_callback_test.dart
|
| index 09eded9c19e83a79851f2ed89b9421f7837b8126..af6b24fc3178bf79ff74d87eb58643c5d31f31b7 100644
|
| --- a/tests/lib/async/zone_bind_callback_test.dart
|
| +++ b/tests/lib/async/zone_bind_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 = () {
|
| @@ -37,4 +37,4 @@ main() {
|
| var result = registered();
|
| Expect.equals(99, result);
|
| Expect.equals(499, restoredValue);
|
| -}
|
| +}
|
|
|