diff --git a/packages/compiler-cli/test/compliance/r3_view_compiler_binding_spec.ts b/packages/compiler-cli/test/compliance/r3_view_compiler_binding_spec.ts
index d5b8ec26a9..bd7c47f1c7 100644
--- a/packages/compiler-cli/test/compliance/r3_view_compiler_binding_spec.ts
+++ b/packages/compiler-cli/test/compliance/r3_view_compiler_binding_spec.ts
@@ -197,6 +197,29 @@ describe('compiler compliance: bindings', () => {
const result = compile(files, angularFiles);
expectEmit(result.source, template, 'Incorrect handling of local refs for nested elements');
});
+
+ it('should not process property bindings and listeners', () => {
+ const files: MockDirectory = getAppFiles(`
+
+ `);
+
+ const template = `
+ const $_c0$ = ["[id]", "my-id", "(click)", "onclick"];
+ …
+ template:function MyComponent_Template(rf, $ctx$){
+ if (rf & 1) {
+ $i0$.ɵelementStart(0, "div");
+ $i0$.ɵsetBindingsDisabled();
+ $i0$.ɵelement(1, "div", $_c0$);
+ $i0$.ɵsetBindingsEnabled();
+ $i0$.ɵelementEnd();
+ }
+ `;
+ const result = compile(files, angularFiles);
+ expectEmit(result.source, template, 'Incorrect handling of local refs for nested elements');
+ });
});
});
diff --git a/packages/core/test/render3/integration_spec.ts b/packages/core/test/render3/integration_spec.ts
index f8ac7bf7c1..691c5a003f 100644
--- a/packages/core/test/render3/integration_spec.ts
+++ b/packages/core/test/render3/integration_spec.ts
@@ -162,27 +162,6 @@ describe('render3 integration test', () => {
expect(fixture.html).toEqual('Hello {{ name }}! my-id ');
});
- it('should not have local refs for nested elements', () => {
- /**
- *
- * {{ myInput.value }}
- *
- */
- const App = createComponent('app', function(rf: RenderFlags, ctx: any) {
- if (rf & RenderFlags.Create) {
- elementStart(0, 'div');
- setBindingsDisabled();
- element(1, 'input', ['value', 'one']);
- text(2, '{{ myInput.value }}');
- setBindingsEnabled();
- elementEnd();
- }
- }, 3, 0);
-
- const fixture = new ComponentFixture(App);
- expect(fixture.html).toEqual('{{ myInput.value }}
');
- });
-
it('should invoke directives for host element', () => {
let directiveInvoked: boolean = false;