1 write to ReferenceFrameIndex
Microsoft.AspNetCore.Components (1)
RenderTree\RenderTreeEdit.cs (1)
67
ReferenceFrameIndex
= referenceFrameOrMoveToSiblingIndex;
138 references to ReferenceFrameIndex
Microsoft.AspNetCore.Components.Authorization.Tests (18)
AuthorizeRouteViewTest.cs (5)
68
AssertFrame.Component<TestPageRequiringAuthorization>(batch.ReferenceFrames[edit.
ReferenceFrameIndex
]);
105
AssertFrame.Component<TestPageRequiringAuthorization>(batch.ReferenceFrames[edit.
ReferenceFrameIndex
]);
241
AssertFrame.Text(batch.ReferenceFrames[edit.
ReferenceFrameIndex
], "Go away, Bert");
360
AssertFrame.Text(batch2.ReferenceFrames[edit.
ReferenceFrameIndex
], "Not authorized");
373
ref var referenceFrame = ref batch.ReferenceFrames[edit.
ReferenceFrameIndex
];
AuthorizeViewTest.cs (9)
71
renderer.Batches.Single().ReferenceFrames[edit.
ReferenceFrameIndex
],
135
renderer.Batches.Single().ReferenceFrames[edit.
ReferenceFrameIndex
],
171
renderer.Batches.Single().ReferenceFrames[edit.
ReferenceFrameIndex
],
218
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
285
batch2.ReferenceFrames[edit.
ReferenceFrameIndex
],
316
batch1.ReferenceFrames[edit.
ReferenceFrameIndex
],
335
batch2.ReferenceFrames[edit.
ReferenceFrameIndex
],
374
batch1.ReferenceFrames[edit.
ReferenceFrameIndex
],
393
batch2.ReferenceFrames[edit.
ReferenceFrameIndex
],
CascadingAuthenticationStateTest.cs (4)
59
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
94
batch1.ReferenceFrames[edit.
ReferenceFrameIndex
],
112
batch2.ReferenceFrames[edit.
ReferenceFrameIndex
],
148
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
Microsoft.AspNetCore.Components.Server (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
111
_binaryWriter.Write(edit.
ReferenceFrameIndex
);
Microsoft.AspNetCore.Components.Tests (113)
CascadingParameterTest.cs (17)
44
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
92
Assert.Equal(0, edit.
ReferenceFrameIndex
); // This is the only change
138
Assert.Equal(0, edit.
ReferenceFrameIndex
); // This is the only change
284
firstBatch.ReferenceFrames[edit.
ReferenceFrameIndex
],
428
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
436
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
475
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
511
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
549
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
591
firstBatch.ReferenceFrames[edit.
ReferenceFrameIndex
],
609
Assert.Equal(0, edit.
ReferenceFrameIndex
); // This is the only change
625
Assert.Equal(0, edit.
ReferenceFrameIndex
); // This is the only change
661
firstBatch.ReferenceFrames[edit.
ReferenceFrameIndex
],
674
secondBatch.ReferenceFrames[diff2.Edits[0].
ReferenceFrameIndex
],
686
secondBatch.ReferenceFrames[edit.
ReferenceFrameIndex
],
756
AssertFrame.Text(firstBatch.ReferenceFrames[edit.
ReferenceFrameIndex
], "CascadingParameter=Hello; SingleDeliveryCascadingParameter=Initial single delivery value; RegularParameter=Initial value");
780
Assert.Equal(0, edit.
ReferenceFrameIndex
);
LayoutViewTest.cs (5)
193
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
240
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
253
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
261
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
269
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
RendererTest.cs (32)
51
Assert.Equal(0, edit.
ReferenceFrameIndex
);
91
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
112
Assert.Equal(0, edit.
ReferenceFrameIndex
);
125
Assert.Equal(0, edit.
ReferenceFrameIndex
);
157
Assert.Equal(0, edit.
ReferenceFrameIndex
);
170
Assert.Equal(0, edit.
ReferenceFrameIndex
);
200
Assert.Equal(0, edit.
ReferenceFrameIndex
);
293
Assert.Equal(0, edit.
ReferenceFrameIndex
);
309
Assert.Equal(0, edit.
ReferenceFrameIndex
);
2016
AssertFrame.Text(renderer1Batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
2026
AssertFrame.Text(renderer2Batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
2063
Assert.Equal(0, edit.
ReferenceFrameIndex
);
2139
Assert.Equal(0, edit.
ReferenceFrameIndex
);
2177
Assert.Equal(0, edit.
ReferenceFrameIndex
);
2241
.Select(edit => batch.ReferenceFrames[edit.
ReferenceFrameIndex
])
2643
.Select(e => batch.ReferenceFrames[e.
ReferenceFrameIndex
])
2649
.Skip(childComponentDiff.Edits[0].
ReferenceFrameIndex
) // Search from where the child component frames start
2770
.Select(e => batch.ReferenceFrames[e.
ReferenceFrameIndex
])
2776
.Skip(childComponentDiff.Edits[0].
ReferenceFrameIndex
) // Search from where the child component frames start
2887
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
2899
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
2911
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
2947
AssertFrame.Text(batch1.ReferenceFrames[edit1.
ReferenceFrameIndex
],
2956
AssertFrame.Text(batch2.ReferenceFrames[edit2.
ReferenceFrameIndex
],
2991
batch.ReferenceFrames[edit.
ReferenceFrameIndex
]);
2997
batch.ReferenceFrames[edit.
ReferenceFrameIndex
],
3006
AssertFrame.Text(batch.ReferenceFrames[diff2edit.
ReferenceFrameIndex
],
3014
AssertFrame.Text(batch.ReferenceFrames[diff3edit.
ReferenceFrameIndex
],
3299
AssertFrame.Attribute(latestBatch.ReferenceFrames[edit.
ReferenceFrameIndex
],
3423
edit => (AfterRenderCaptureComponent)batch1.ReferenceFrames[edit.
ReferenceFrameIndex
].Component)
4361
var attributeFrame = batch2.ReferenceFrames[edit.
ReferenceFrameIndex
];
4413
var attributeFrame = latestBatch.ReferenceFrames[edit.
ReferenceFrameIndex
];
RenderTreeDiffBuilderTest.cs (59)
88
Assert.Equal(0, entry.
ReferenceFrameIndex
);
141
Assert.Equal(0, entry.
ReferenceFrameIndex
);
142
Assert.Equal("new key", referenceFrames[entry.
ReferenceFrameIndex
].ElementKey);
201
Assert.Equal(0, entry.
ReferenceFrameIndex
);
202
Assert.Equal("new key", referenceFrames[entry.
ReferenceFrameIndex
].ElementKey);
379
Assert.Equal(0, entry.
ReferenceFrameIndex
);
380
Assert.Equal("new key", referenceFrames[entry.
ReferenceFrameIndex
].ComponentKey);
522
Assert.Equal("some key", referenceFrames[edit.
ReferenceFrameIndex
].ElementKey);
593
Assert.Equal(0, entry.
ReferenceFrameIndex
);
598
Assert.Equal(1, entry.
ReferenceFrameIndex
);
643
Assert.Equal(0, entry.
ReferenceFrameIndex
);
648
Assert.Equal(1, entry.
ReferenceFrameIndex
);
673
Assert.Equal(0, entry.
ReferenceFrameIndex
);
678
Assert.Equal(1, entry.
ReferenceFrameIndex
);
737
Assert.Equal(0, entry.
ReferenceFrameIndex
);
742
Assert.Equal(1, entry.
ReferenceFrameIndex
);
765
Assert.Equal(0, entry.
ReferenceFrameIndex
);
766
Assert.Equal("was inserted", referenceFrames[entry.
ReferenceFrameIndex
].MarkupContent);
771
Assert.Equal(1, entry.
ReferenceFrameIndex
);
772
Assert.Equal("was updated", referenceFrames[entry.
ReferenceFrameIndex
].MarkupContent);
802
Assert.Equal(0, entry.
ReferenceFrameIndex
);
828
Assert.IsType<FakeComponent2>(batchBuilder.ReferenceFramesBuffer.Buffer[entry.
ReferenceFrameIndex
].Component);
852
Assert.Equal(0, entry.
ReferenceFrameIndex
);
902
Assert.Equal(0, entry.
ReferenceFrameIndex
);
932
Assert.Equal(0, entry.
ReferenceFrameIndex
);
965
Assert.Equal(0, entry.
ReferenceFrameIndex
);
993
Assert.Equal(0, entry.
ReferenceFrameIndex
);
1023
Assert.Equal(0, entry.
ReferenceFrameIndex
);
1054
Assert.Equal(0, entry.
ReferenceFrameIndex
);
1085
Assert.Equal(0, entry.
ReferenceFrameIndex
);
1115
Assert.Equal(0, entry.
ReferenceFrameIndex
);
1146
Assert.Equal(0, entry.
ReferenceFrameIndex
);
1349
Assert.Equal(0, entry.
ReferenceFrameIndex
);
1388
Assert.Equal(0, entry.
ReferenceFrameIndex
);
1415
Assert.Equal(0, entry.
ReferenceFrameIndex
);
1440
Assert.Equal(0, entry.
ReferenceFrameIndex
);
1472
referenceFrames[entry.
ReferenceFrameIndex
], "Text inside region");
1478
referenceFrames[entry.
ReferenceFrameIndex
], "Text inside nested region");
1536
referenceFrames[entry.
ReferenceFrameIndex
], "Changed text inside region");
1543
referenceFrames[entry.
ReferenceFrameIndex
], "Text to move");
1572
Assert.Equal(0, entry.
ReferenceFrameIndex
);
1577
Assert.Equal(1, entry.
ReferenceFrameIndex
);
1861
Assert.Equal(0, edit.
ReferenceFrameIndex
);
1931
Assert.Equal(0, edit.
ReferenceFrameIndex
);
2009
Assert.Equal(0, entry.
ReferenceFrameIndex
);
2010
Assert.Equal("First modified", referenceFrames[entry.
ReferenceFrameIndex
].TextContent);
2093
Assert.Equal(0, entry.
ReferenceFrameIndex
);
2094
Assert.Equal("newly inserted", referenceFrames[entry.
ReferenceFrameIndex
].ElementKey);
2142
Assert.Equal(0, entry.
ReferenceFrameIndex
);
2143
Assert.Equal("newly inserted", referenceFrames[entry.
ReferenceFrameIndex
].ElementKey);
2189
Assert.Equal(0, entry.
ReferenceFrameIndex
);
2190
Assert.Equal("some text", referenceFrames[entry.
ReferenceFrameIndex
].TextContent);
2213
Assert.Equal(0, entry.
ReferenceFrameIndex
);
2214
Assert.Equal("some elem", referenceFrames[entry.
ReferenceFrameIndex
].ElementName);
2242
Assert.Equal(0, entry.
ReferenceFrameIndex
);
2243
Assert.Equal("new element", referenceFrames[entry.
ReferenceFrameIndex
].ElementName);
2296
Assert.Equal(0, entry.
ReferenceFrameIndex
);
2297
Assert.Equal("attr1", referenceFrames[entry.
ReferenceFrameIndex
].AttributeName);
2357
Assert.Equal(0, entry.
ReferenceFrameIndex
);
Microsoft.AspNetCore.Components.WebView (1)
src\Components\Shared\src\RenderBatchWriter.cs (1)
111
_binaryWriter.Write(edit.
ReferenceFrameIndex
);
Microsoft.AspNetCore.Components.WebView.Test (5)
Infrastructure\TestDocument.cs (5)
81
var frame = batch.ReferenceFrames.Array[edit.
ReferenceFrameIndex
];
83
InsertFrame(batch, parent, childIndexAtCurrentDepth + siblingIndex, batch.ReferenceFrames.Array, frame, edit.
ReferenceFrameIndex
);
96
var frame = batch.ReferenceFrames.Array[edit.
ReferenceFrameIndex
];
136
var frame = batch.ReferenceFrames.Array[edit.
ReferenceFrameIndex
];
152
var frame = batch.ReferenceFrames.Array[edit.
ReferenceFrameIndex
];