feat(DomElementSchemaRegistry): add support for <ng-content> and <ng-container>

This commit is contained in:
Victor Berchet
2016-06-15 09:57:58 -07:00
parent e484c62a8d
commit b620f4f456
2 changed files with 15 additions and 1 deletions

View File

@ -72,6 +72,16 @@ export function main() {
expect(registry.securityContext('p', 'formAction')).toBe(SecurityContext.URL);
});
describe('Angular custom elements', () => {
it('should support <ng-container>',
() => { expect(registry.hasProperty('ng-container', 'id')).toBeFalsy(); });
it('should support <ng-content>', () => {
expect(registry.hasProperty('ng-content', 'id')).toBeFalsy();
expect(registry.hasProperty('ng-content', 'select')).toBeFalsy();
});
});
if (browserDetection.isChromeDesktop) {
it('generate a new schema', () => {
let schema = '\n';