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

Function dispatchAnimationEnd

packages/core/test/acceptance/animation_spec.ts:902–906  ·  view source on GitHub ↗
(animation: Animation)

Source from the content-addressed store, hash-verified

900
901 const [shortAnimation, longAnimation] = getAnimations();
902 const dispatchAnimationEnd = (animation: Animation) => {
903 const event = new AnimationEvent('animationend', {animationName: 'duplicate-name'});
904 Object.defineProperty(event, 'animation', {value: animation});
905 paragraph.nativeElement.dispatchEvent(event);
906 };
907
908 dispatchAnimationEnd(shortAnimation);
909 await timeout();

Callers 1

animation_spec.tsFile · 0.85

Calls 1

dispatchEventMethod · 0.45

Tested by

no test coverage detected