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

Unified Diff: third_party/pkg/angular/test/core/zone_spec.dart

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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: 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"];

Powered by Google App Engine
This is Rietveld 408576698