MCPcopy Create free account
hub / github.com/angular/components / flushPosition

Function flushPosition

src/material/autocomplete/autocomplete.spec.ts:2476–2491  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2474 it('should reposition the panel when the amount of options changes', async () => {
2475 const fixture = createSimpleAutocomplete();
2476 const flushPosition = async () => {
2477 fixture.detectChanges();
2478 await wait(0);
2479 fixture.detectChanges();
2480 await wait(0);
2481 fixture.detectChanges();
2482 // Safari seems to require an extra round that other browsers don't.
2483 await wait(0);
2484 fixture.detectChanges();
2485 await wait(0);
2486 fixture.detectChanges();
2487 await wait(0);
2488 fixture.detectChanges();
2489 await wait(0);
2490 fixture.detectChanges();
2491 };
2492
2493 await flushPosition();
2494

Callers 1

Calls 1

waitFunction · 0.70

Tested by

no test coverage detected