MCPcopy
hub / github.com/angular/components / setPositionAndShow

Function setPositionAndShow

src/material/tooltip/tooltip.spec.ts:930–940  ·  view source on GitHub ↗
(position: TooltipPosition)

Source from the content-addressed store, hash-verified

928 expect(classList).toContain('mat-mdc-tooltip-panel-right');
929
930 async function setPositionAndShow(position: TooltipPosition) {
931 tooltipDirective.hide(0);
932 fixture.detectChanges();
933 await wait(0);
934 tooltipDirective.position = position;
935 tooltipDirective.show(0);
936 fixture.detectChanges();
937 await wait(0);
938 fixture.detectChanges();
939 await wait(0);
940 }
941 });
942
943 it('should account for RTL when setting the tooltip position class', async () => {

Callers 1

tooltip.spec.tsFile · 0.85

Calls 3

waitFunction · 0.70
hideMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…