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

Unified Diff: third_party/pkg/angular/test/tools/source_metadata_extractor_spec.dart

Issue 180843004: Revert revision 33053 (Closed) Base URL: http://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
« no previous file with comments | « third_party/pkg/angular/test/tools/html_extractor_spec.dart ('k') | third_party/pkg/di/.travis.yml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/angular/test/tools/source_metadata_extractor_spec.dart
===================================================================
--- third_party/pkg/angular/test/tools/source_metadata_extractor_spec.dart (revision 33054)
+++ third_party/pkg/angular/test/tools/source_metadata_extractor_spec.dart (working copy)
@@ -12,12 +12,12 @@
it('should extract expressions and attribute names with expressions', () {
var info = extractDirectiveInfo([
- new DirectiveMetadata('FooComponent', COMPONENT, 'foo-component', {
+ new DirectiveMetadata('FooComponent', COMPONENT, null, {
'barVal': '@bar',
- 'baz-expr1': '<=>baz1',
- 'baz-expr2': '=>baz2',
- 'baz-expr3': '=>!baz3',
- 'baz-callback': '&aux',
+ 'bazExpr1': '<=>baz1',
+ 'bazExpr2': '=>baz2',
+ 'bazExpr3': '=>!baz3',
+ 'bazCallback': '&aux',
})
]);
@@ -36,7 +36,7 @@
it('should build a component selector if one is not explicitly specified', () {
var info = extractDirectiveInfo([
- new DirectiveMetadata('MyFooComponent', COMPONENT, 'my-foo', {
+ new DirectiveMetadata('MyFooComponent', COMPONENT, null, {
'foo-expr': '=>fooExpr'
})
]);
@@ -47,7 +47,7 @@
it('should build an element directive selector if one is not explicitly specified', () {
var info = extractDirectiveInfo([
- new DirectiveMetadata('MyFooDirective', DIRECTIVE, 'my-foo', {
+ new DirectiveMetadata('MyFooDirective', DIRECTIVE, null, {
'foo-expr': '=>fooExpr'
})
]);
@@ -58,7 +58,7 @@
it('should build an attr directive selector if one is not explicitly specified', () {
var info = extractDirectiveInfo([
- new DirectiveMetadata('MyFooAttrDirective', '[my-foo]', '[my-foo]', {
+ new DirectiveMetadata('MyFooAttrDirective', DIRECTIVE, null, {
'foo-expr': '=>fooExpr'
})
]);
@@ -69,7 +69,7 @@
it('should figure out attribute name if dot(.) is used', () {
var info = extractDirectiveInfo([
- new DirectiveMetadata('MyFooAttrDirective', DIRECTIVE, '[my-foo]', {
+ new DirectiveMetadata('MyFooAttrDirective', DIRECTIVE, null, {
'.': '=>fooExpr'
})
]);
@@ -119,8 +119,8 @@
List<DirectiveInfo> extractDirectiveInfo(List<DirectiveMetadata> metadata) {
var sourceCrawler = new MockSourceCrawler();
var metadataCollector = new MockDirectiveMetadataCollectingVisitor(metadata);
- var extractor = new SourceMetadataExtractor(metadataCollector);
- return extractor.gatherDirectiveInfo('', sourceCrawler);
+ var extractor = new SourceMetadataExtractor(sourceCrawler, metadataCollector);
+ return extractor.gatherDirectiveInfo('');
}
class MockDirectiveMetadataCollectingVisitor
« no previous file with comments | « third_party/pkg/angular/test/tools/html_extractor_spec.dart ('k') | third_party/pkg/di/.travis.yml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698