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

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

Issue 180873006: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback 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/registry_spec.dart
diff --git a/third_party/pkg/angular/test/core/registry_spec.dart b/third_party/pkg/angular/test/core/registry_spec.dart
index acfd433977c90e49b5ba1091e7f5180ec10e5a7d..532dbf1aeaa4e53f1bdbf8aa72919e0ae472d99f 100644
--- a/third_party/pkg/angular/test/core/registry_spec.dart
+++ b/third_party/pkg/angular/test/core/registry_spec.dart
@@ -30,8 +30,20 @@ main() => describe('RegistryMap', () {
expect(keys).toEqual([new MyAnnotation('A'), new MyAnnotation('B')]);
expect(types).toEqual([A1, A1]);
});
+
+ it('should safely ignore typedefs', () {
+ var module = new Module()
+ ..type(MyMap)
+ ..type(MetadataExtractor)
+ ..value(MyTypedef, (String _) => null);
+
+ var injector = new DynamicInjector(modules: [module]);
+ expect(() => injector.get(MyMap), isNot(throws));
+ });
});
+typedef void MyTypedef(String arg);
+
class MyMap extends AnnotationMap<MyAnnotation> {
MyMap(Injector injector, MetadataExtractor metadataExtractor)
: super(injector, metadataExtractor);
« no previous file with comments | « third_party/pkg/angular/test/core/parser/static_parser_spec.dart ('k') | third_party/pkg/angular/test/core/scope_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698