fix(ivy): shadow all DOM properties in DebugElement.properties (#33781)

Fixes #33695

PR Close #33781
This commit is contained in:
Miško Hevery
2019-11-12 17:12:36 -08:00
committed by Alex Rickabaugh
parent 6d06d9d3c6
commit 5be23a309e
5 changed files with 151 additions and 72 deletions

View File

@ -921,6 +921,7 @@ function declareTests(config?: {useJit: boolean}) {
@Directive({selector: '[host-properties]', host: {'[id]': 'id', '[title]': 'unknownProp'}})
class DirectiveWithHostProps {
id = 'one';
unknownProp = 'unknownProp';
}
const fixture =
@ -933,7 +934,7 @@ function declareTests(config?: {useJit: boolean}) {
const tc = fixture.debugElement.children[0];
expect(tc.properties['id']).toBe('one');
expect(tc.properties['title']).toBe(undefined);
expect(tc.properties['title']).toBe('unknownProp');
});
it('should not allow pipes in hostProperties', () => {