(
fixture: ComponentFixture<{viewport: CdkVirtualScrollViewport}>,
offset: number,
)
| 2062 | } |
| 2063 | |
| 2064 | async function triggerScroll( |
| 2065 | fixture: ComponentFixture<{viewport: CdkVirtualScrollViewport}>, |
| 2066 | offset: number, |
| 2067 | ) { |
| 2068 | const viewport = fixture.componentInstance.viewport; |
| 2069 | viewport.scrollToOffset(offset); |
| 2070 | dispatchFakeEvent(viewport.scrollable!.getElementRef().nativeElement, 'scroll'); |
| 2071 | await new Promise(resolve => setTimeout(resolve, 50)); |
| 2072 | } |
| 2073 | |
| 2074 | it('should not render the full data set when using virtual scrolling', async () => { |
| 2075 | const {fixture, table} = await createVirtualScroll(TableWithVirtualScroll); |
no test coverage detected