(overlayContainer: HTMLElement, isVisible: boolean)
| 1706 | } |
| 1707 | |
| 1708 | function finishCurrentTooltipAnimation(overlayContainer: HTMLElement, isVisible: boolean) { |
| 1709 | const tooltip = overlayContainer.querySelector('.mat-mdc-tooltip')!; |
| 1710 | const event = createFakeEvent('animationend'); |
| 1711 | Object.defineProperty(event, 'animationName', { |
| 1712 | get: () => `mat-mdc-tooltip-${isVisible ? 'show' : 'hide'}`, |
| 1713 | }); |
| 1714 | dispatchEvent(tooltip, event); |
| 1715 | } |
no test coverage detected