refactor(transformer): updates in properties syntax

This commit is contained in:
Victor Berchet
2015-05-29 10:40:37 +02:00
parent d7df853bde
commit 35f0ee510a
13 changed files with 42 additions and 27 deletions

View File

@ -63,10 +63,8 @@ void allTests() {
'directive_metadata_files/properties.ng_deps.dart');
expect(metadata.properties).toBeNotNull();
expect(metadata.properties.length).toBe(2);
expect(metadata.properties).toContain('key1');
expect(metadata.properties['key1']).toEqual('val1');
expect(metadata.properties).toContain('key2');
expect(metadata.properties['key2']).toEqual('val2');
expect(metadata.properties).toContain('key1: val1');
expect(metadata.properties).toContain('key2: val2');
});
it('should parse host listeners.', () async {

View File

@ -7,7 +7,7 @@
"hostProperties": {},
"hostAttributes": {},
"hostActions": null,
"properties": {},
"properties": [],
"readAttributes": [],
"type": 1,
"version": 1

View File

@ -6,7 +6,7 @@
"compileChildren":true,
"hostListeners":{},
"hostProperties":{},
"properties":{},
"properties":[],
"readAttributes":[],
"type":1,
"version":1

View File

@ -6,7 +6,7 @@
"compileChildren":true,
"hostListeners":{},
"hostProperties":{},
"properties":{},
"properties":[],
"readAttributes":[],
"type":1,
"version":1

View File

@ -6,7 +6,7 @@
"compileChildren":true,
"hostListeners":{},
"hostProperties":{},
"properties":{},
"properties":[],
"readAttributes":[],
"type":1,
"version":1

View File

@ -5,8 +5,8 @@
"selector":"hello-app",
"compileChildren":true,
"hostListeners":{},
"hostProperties":{},
"properties":{},
"hostProperties":[],
"properties":[],
"readAttributes":[],
"type":1,
"version":1
@ -17,7 +17,7 @@
"compileChildren":true,
"hostListeners":{},
"hostProperties":{},
"properties":{},
"properties":[],
"readAttributes":[],
"type":1,
"version":1

View File

@ -6,7 +6,7 @@
"compileChildren":true,
"hostListeners":{},
"hostProperties":{},
"properties":{},
"properties":[],
"readAttributes":[],
"type":1,
"version":1

View File

@ -6,7 +6,7 @@
"compileChildren":true,
"hostListeners":{},
"hostProperties":{},
"properties":{},
"properties":[],
"readAttributes":[],
"type":1,
"version":1

View File

@ -4,8 +4,8 @@
"selector":"goodbye-app",
"compileChildren":true,
"hostListeners":{},
"hostProperties":{},
"properties":{},
"hostProperties":[],
"properties":[],
"readAttributes":[],
"type":1,
"version":1

View File

@ -6,7 +6,7 @@
"compileChildren":true,
"hostListeners":{},
"hostProperties":{},
"properties":{},
"properties":[],
"readAttributes":[],
"type":1,
"version":1