Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
fix(directives): cssUrl in NgComponent
Browse files Browse the repository at this point in the history
Closes# 418
  • Loading branch information
daydev authored and mhevery committed Jan 27, 2014
1 parent 4800d5b commit 952496b
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion test/core/core_directive_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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'
}
Expand Down

0 comments on commit 952496b

Please sign in to comment.