refactor(ivy): remove directiveRefresh instruction (#22745)
PR Close #22745
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import {defineComponent, defineDirective} from '../../src/render3/index';
|
||||
import {NO_CHANGE, bind, container, containerRefreshEnd, containerRefreshStart, directiveRefresh, elementAttribute, elementClass, elementEnd, elementProperty, elementStart, elementStyle, embeddedViewEnd, embeddedViewStart, interpolation1, interpolation2, interpolation3, interpolation4, interpolation5, interpolation6, interpolation7, interpolation8, interpolationV, load, projection, projectionDef, text, textBinding} from '../../src/render3/instructions';
|
||||
import {NO_CHANGE, bind, container, containerRefreshEnd, containerRefreshStart, elementAttribute, elementClass, elementEnd, elementProperty, elementStart, elementStyle, embeddedViewEnd, embeddedViewStart, interpolation1, interpolation2, interpolation3, interpolation4, interpolation5, interpolation6, interpolation7, interpolation8, interpolationV, load, projection, projectionDef, text, textBinding} from '../../src/render3/instructions';
|
||||
|
||||
import {containerEl, renderToHtml} from './render_util';
|
||||
|
||||
@ -201,7 +201,6 @@ describe('render3 integration test', () => {
|
||||
elementEnd();
|
||||
}
|
||||
TodoComponent.ngComponentDef.h(1, 0);
|
||||
directiveRefresh(1, 0);
|
||||
}
|
||||
|
||||
expect(renderToHtml(Template, null)).toEqual('<todo><p>Todo one</p></todo>');
|
||||
@ -215,7 +214,6 @@ describe('render3 integration test', () => {
|
||||
text(2, 'two');
|
||||
}
|
||||
TodoComponent.ngComponentDef.h(1, 0);
|
||||
directiveRefresh(1, 0);
|
||||
}
|
||||
expect(renderToHtml(Template, null)).toEqual('<todo><p>Todo one</p></todo>two');
|
||||
});
|
||||
@ -234,8 +232,6 @@ describe('render3 integration test', () => {
|
||||
}
|
||||
TodoComponent.ngComponentDef.h(1, 0);
|
||||
TodoComponent.ngComponentDef.h(3, 2);
|
||||
directiveRefresh(1, 0);
|
||||
directiveRefresh(3, 2);
|
||||
}
|
||||
expect(renderToHtml(Template, null))
|
||||
.toEqual('<todo><p>Todo one</p></todo><todo><p>Todo one</p></todo>');
|
||||
@ -271,7 +267,6 @@ describe('render3 integration test', () => {
|
||||
elementEnd();
|
||||
}
|
||||
TodoComponentHostBinding.ngComponentDef.h(1, 0);
|
||||
directiveRefresh(1, 0);
|
||||
}
|
||||
|
||||
expect(renderToHtml(Template, {})).toEqual('<todo title="one">one</todo>');
|
||||
@ -304,7 +299,6 @@ describe('render3 integration test', () => {
|
||||
elementEnd();
|
||||
}
|
||||
MyComp.ngComponentDef.h(1, 0);
|
||||
directiveRefresh(1, 0);
|
||||
}
|
||||
|
||||
expect(renderToHtml(Template, null)).toEqual('<comp><p>Bess</p></comp>');
|
||||
@ -351,7 +345,6 @@ describe('render3 integration test', () => {
|
||||
}
|
||||
elementProperty(0, 'condition', bind(ctx.condition));
|
||||
MyComp.ngComponentDef.h(1, 0);
|
||||
directiveRefresh(1, 0);
|
||||
}
|
||||
|
||||
expect(renderToHtml(Template, {condition: true})).toEqual('<comp><div>text</div></comp>');
|
||||
@ -472,7 +465,6 @@ describe('render3 integration test', () => {
|
||||
}
|
||||
containerRefreshEnd();
|
||||
ChildComponent.ngComponentDef.h(1, 0);
|
||||
directiveRefresh(1, 0);
|
||||
}
|
||||
|
||||
it('should work with a tree', () => {
|
||||
@ -648,7 +640,6 @@ describe('render3 integration test', () => {
|
||||
elementEnd();
|
||||
}
|
||||
HostBindingDir.ngDirectiveDef.h(1, 0);
|
||||
directiveRefresh(1, 0);
|
||||
}
|
||||
|
||||
expect(renderToHtml(Template, {}))
|
||||
|
Reference in New Issue
Block a user