MCPcopy Create free account
hub / github.com/angular/angular / nextAnimationFrame

Function nextAnimationFrame

packages/private/testing/src/browser_utils.ts:13–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12/** Waits for callbacks queued for the next animation frame to run. */
13export function nextAnimationFrame(): Promise<void> {
14 return new Promise((resolve) => requestAnimationFrame(() => resolve()));
15}
16
17export function dispatchEvent(element: any, eventType: any): Event {
18 const evt: Event = getDOM().getDefaultDocument().createEvent('Event');

Callers 2

animation_spec.tsFile · 0.90
finishLeaveAnimationsFunction · 0.90

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected