@ -327,6 +327,15 @@ export function main() {
|
||||
]);
|
||||
});
|
||||
|
||||
it('should locate directives in event bindings', () => {
|
||||
var dirA = CompileDirectiveMetadata.create(
|
||||
{selector: '[a]', type: new CompileTypeMetadata({name: 'DirB'})});
|
||||
|
||||
expect(humanizeTplAst(parse('<div (a)="b">', [dirA])))
|
||||
.toEqual(
|
||||
[[ElementAst, 'div'], [BoundEventAst, 'a', null, 'b'], [DirectiveAst, dirA]]);
|
||||
});
|
||||
|
||||
it('should parse directive host properties', () => {
|
||||
var dirA = CompileDirectiveMetadata.create({
|
||||
selector: 'div',
|
||||
|
Reference in New Issue
Block a user