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

Unified Diff: third_party/pkg/angular/lib/mock/module.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/lib/mock/module.dart
diff --git a/third_party/pkg/angular/lib/mock/module.dart b/third_party/pkg/angular/lib/mock/module.dart
index 8841df55d1d72bcf9c72973fb69c2fe828f332f1..92b7386a64631bcdd3761c6ea05b9b604f17255f 100644
--- a/third_party/pkg/angular/lib/mock/module.dart
+++ b/third_party/pkg/angular/lib/mock/module.dart
@@ -43,9 +43,8 @@ class AngularMockModule extends Module {
type(MockHttpBackend);
factory(HttpBackend, (Injector i) => i.get(MockHttpBackend));
factory(NgZone, (_) {
- NgZone zone = new NgZone();
- zone.onError = (dynamic e, dynamic s, LongStackTrace ls) => dump('EXCEPTION: $e\n$s\n$ls');
- return zone;
+ return new NgZone()
+ ..onError = (e, s, LongStackTrace ls) => dump('EXCEPTION: $e\n$s\n$ls');
});
type(Window, implementedBy: MockWindow);
}

Powered by Google App Engine
This is Rietveld 408576698