| Index: third_party/pkg/angular/test/core/zone_spec.dart
|
| diff --git a/third_party/pkg/angular/test/core/zone_spec.dart b/third_party/pkg/angular/test/core/zone_spec.dart
|
| index 1725d837b68008e6e980bbb1cad8062b4f9506d3..a50b1c9a0802ff376b144d609ffe135809f91649 100644
|
| --- a/third_party/pkg/angular/test/core/zone_spec.dart
|
| +++ b/third_party/pkg/angular/test/core/zone_spec.dart
|
| @@ -46,6 +46,23 @@ main() => describe('zone', () {
|
| })));
|
|
|
|
|
| + it('should allow executing code outside the zone', inject(() {
|
| + var zone = new NgZone();
|
| + var outerZone = Zone.current;
|
| + var ngZone;
|
| + var outsideZone;
|
| + zone.run(() {
|
| + ngZone = Zone.current;
|
| + zone.runOutsideAngular(() {
|
| + outsideZone = Zone.current;
|
| + });
|
| + });
|
| +
|
| + expect(outsideZone).toEqual(outerZone);
|
| + expect(ngZone.parent).toEqual((outerZone));
|
| + }));
|
| +
|
| +
|
| it('should rethrow exceptions from the onTurnDone and call onError when the zone is sync', () {
|
| zone.onTurnDone = () {
|
| throw ["fromOnTurnDone"];
|
|
|