(x: number, y: number, width: number, height: number)
| 146 | */ |
| 147 | it('weicht keinem Feld aus, das in einem zugeklappten details gar nicht gezeichnet ist', async () => { |
| 148 | const rect = (x: number, y: number, width: number, height: number) => () => |
| 149 | ({ x, y, width, height, left: x, top: y, right: x + width, bottom: y + height, toJSON: () => ({}) }) as DOMRect; |
| 150 | const size = vi.spyOn(HTMLElement.prototype, 'offsetWidth', 'get').mockImplementation(function (this: HTMLElement) { |
| 151 | return this.dataset.testid === 'atlas-hint' ? 200 : 0; |
| 152 | }); |