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

Function finishLeaveAnimations

packages/core/test/acceptance/animation_spec.ts:3038–3044  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3036
3037 // Helper to complete the leave animation for all leaving menu elements
3038 const finishLeaveAnimations = async () => {
3039 await nextAnimationFrame();
3040 document.querySelectorAll('.example-menu.close').forEach((el) => {
3041 el.dispatchEvent(new AnimationEvent('animationend', {animationName: 'open'}));
3042 });
3043 await timeout();
3044 };
3045
3046 // Simulate rapid clicking with CD between each toggle
3047 for (let i = 0; i < 20; i++) {

Callers 1

animation_spec.tsFile · 0.85

Calls 4

nextAnimationFrameFunction · 0.90
timeoutFunction · 0.90
forEachMethod · 0.45
dispatchEventMethod · 0.45

Tested by

no test coverage detected