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

Method hover

src/cdk/testing/testbed/unit-test-element.ts:148–153  ·  view source on GitHub ↗

Hovers the mouse over the element.

()

Source from the content-addressed store, hash-verified

146
147 /** Hovers the mouse over the element. */
148 async hover(): Promise<void> {
149 this._dispatchPointerEventIfSupported('pointerenter');
150 dispatchMouseEvent(this.element, 'mouseover');
151 dispatchMouseEvent(this.element, 'mouseenter');
152 await this._stabilize();
153 }
154
155 /** Moves the mouse away from the element. */
156 async mouseAway(): Promise<void> {

Callers

nothing calls this directly

Calls 2

dispatchMouseEventFunction · 0.90

Tested by

no test coverage detected