refactor(ivy): rename tView.firstTemplatePass
to tView.firstCreatePass
(#31270)
PR Close #31270
This commit is contained in:
@ -691,7 +691,7 @@ describe('JS control flow', () => {
|
||||
let log: string[] = [];
|
||||
|
||||
// Intentionally duplicating the templates in test below so we are
|
||||
// testing the behavior on firstTemplatePass for each of these tests
|
||||
// testing the behavior on firstCreatePass for each of these tests
|
||||
class Comp {
|
||||
static ɵfac =
|
||||
() => {
|
||||
@ -761,7 +761,7 @@ describe('JS control flow', () => {
|
||||
let log: string[] = [];
|
||||
|
||||
// Intentionally duplicating the templates from above so we are
|
||||
// testing the behavior on firstTemplatePass for each of these tests
|
||||
// testing the behavior on firstCreatePass for each of these tests
|
||||
class Comp {
|
||||
static ɵfac =
|
||||
() => {
|
||||
|
@ -145,7 +145,7 @@ describe('di', () => {
|
||||
describe('bloom filter', () => {
|
||||
let mockTView: any;
|
||||
beforeEach(() => {
|
||||
mockTView = {data: [0, 0, 0, 0, 0, 0, 0, 0, null], firstTemplatePass: true};
|
||||
mockTView = {data: [0, 0, 0, 0, 0, 0, 0, 0, null], firstCreatePass: true};
|
||||
});
|
||||
|
||||
function bloomState() { return mockTView.data.slice(0, TNODE).reverse(); }
|
||||
|
@ -45,7 +45,7 @@ describe('instructions', () => {
|
||||
t.update(() => { ɵɵproperty('title', 'World'); });
|
||||
expect(t.html).toEqual('<a title="World"></a>');
|
||||
expect(ngDevMode).toHaveProperties({
|
||||
firstTemplatePass: 1,
|
||||
firstCreatePass: 1,
|
||||
tNode: 2, // 1 for hostElement + 1 for the template under test
|
||||
tView: 2, // 1 for rootView + 1 for the template view
|
||||
rendererCreateElement: 1,
|
||||
@ -64,7 +64,7 @@ describe('instructions', () => {
|
||||
t.update();
|
||||
expect(t.html).toEqual('<a title="Hello"></a>');
|
||||
expect(ngDevMode).toHaveProperties({
|
||||
firstTemplatePass: 1,
|
||||
firstCreatePass: 1,
|
||||
tNode: 2, // 1 for hostElement + 1 for the template under test
|
||||
tView: 2, // 1 for rootView + 1 for the template view
|
||||
rendererCreateElement: 1,
|
||||
@ -83,7 +83,7 @@ describe('instructions', () => {
|
||||
expect(div.id).toEqual('test');
|
||||
expect(div.title).toEqual('Hello');
|
||||
expect(ngDevMode).toHaveProperties({
|
||||
firstTemplatePass: 1,
|
||||
firstCreatePass: 1,
|
||||
tNode: 2, // 1 for div, 1 for host element
|
||||
tView: 2, // 1 for rootView + 1 for the template view
|
||||
rendererCreateElement: 1,
|
||||
@ -103,7 +103,7 @@ describe('instructions', () => {
|
||||
});
|
||||
expect(t.html).toEqual('<div title="javascript:true"></div>');
|
||||
expect(ngDevMode).toHaveProperties({
|
||||
firstTemplatePass: 1,
|
||||
firstCreatePass: 1,
|
||||
tNode: 2, // 1 for div, 1 for host element
|
||||
tView: 2, // 1 for rootView + 1 for the template view
|
||||
rendererCreateElement: 1,
|
||||
@ -126,7 +126,7 @@ describe('instructions', () => {
|
||||
t.update(() => { ɵɵproperty('title', 'two')('accessKey', 'B'); });
|
||||
expect(t.html).toEqual('<div accesskey="B" title="two"></div>');
|
||||
expect(ngDevMode).toHaveProperties({
|
||||
firstTemplatePass: 1,
|
||||
firstCreatePass: 1,
|
||||
tNode: 2, // 1 for div, 1 for host element
|
||||
tView: 2, // 1 for rootView + 1 for the template view
|
||||
rendererCreateElement: 1,
|
||||
|
@ -34,7 +34,7 @@ describe('render3 integration test', () => {
|
||||
expect(renderToHtml(Template, 'once', 1, 1)).toEqual('once');
|
||||
expect(renderToHtml(Template, 'twice', 1, 1)).toEqual('once');
|
||||
expect(ngDevMode).toHaveProperties({
|
||||
firstTemplatePass: 0,
|
||||
firstCreatePass: 0,
|
||||
tNode: 2,
|
||||
tView: 2, // 1 for root view, 1 for template
|
||||
rendererSetText: 1,
|
||||
|
Reference in New Issue
Block a user