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

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

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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/core_directive_spec.dart
diff --git a/third_party/pkg/angular/test/core_dom/directive_spec.dart b/third_party/pkg/angular/test/core/core_directive_spec.dart
similarity index 73%
copy from third_party/pkg/angular/test/core_dom/directive_spec.dart
copy to third_party/pkg/angular/test/core/core_directive_spec.dart
index f065bbdcda68bd0be7b06f3cfdf1ea885ceb4fd8..cc452671465f2174774f74595cad91d9463efd4d 100644
--- a/third_party/pkg/angular/test/core_dom/directive_spec.dart
+++ b/third_party/pkg/angular/test/core/core_directive_spec.dart
@@ -1,4 +1,4 @@
-library directive_spec;
+library core_directive_spec;
import '../_specs.dart';
@@ -15,6 +15,17 @@ main() => describe('DirectiveMap', () {
expect(annotations[0] is NgComponent).toBeTruthy();
NgComponent annotation = annotations[0];
+ expect(annotation.selector).toEqual('annotated-io');
+ expect(annotation.visibility).toEqual(NgDirective.LOCAL_VISIBILITY);
+ expect(annotation.exportExpressions).toEqual(['exportExpressions']);
+ expect(annotation.publishTypes).toEqual([String]);
+ expect(annotation.template).toEqual('template');
+ expect(annotation.templateUrl).toEqual('templateUrl');
+ expect(annotation.cssUrl).toEqual('cssUrl');
+ expect(annotation.cssUrls).toEqual(['cssUrls']);
+ expect(annotation.applyAuthorStyles).toEqual(true);
+ expect(annotation.resetStyleInheritance).toEqual(true);
+ expect(annotation.publishAs).toEqual('ctrl');
expect(annotation.map).toEqual({
'foo': '=>foo',
'attr': '@attr',
@@ -60,7 +71,16 @@ main() => describe('DirectiveMap', () {
@NgComponent(
selector: 'annotated-io',
- template: r'<content></content>',
+ template: 'template',
+ templateUrl: 'templateUrl',
+ cssUrl: 'cssUrl',
+ cssUrls: const ['cssUrls'],
+ applyAuthorStyles: true,
+ resetStyleInheritance: true,
+ publishAs: 'ctrl',
+ publishTypes: const [String],
+ visibility: NgDirective.LOCAL_VISIBILITY,
+ exportExpressions: const ['exportExpressions'],
map: const {
'foo': '=>foo'
}
« no previous file with comments | « third_party/pkg/angular/test/_specs.dart ('k') | third_party/pkg/angular/test/core/parser/generated_functions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698