(tree, col, delta)
| 2094 | } |
| 2095 | |
| 2096 | function resizeCol(tree, col, delta) { |
| 2097 | act(() => { |
| 2098 | setInteractionModality('pointer'); |
| 2099 | }); |
| 2100 | let column = getColumn(tree, col); |
| 2101 | let resizer = within(column).getByRole('slider'); |
| 2102 | |
| 2103 | fireEvent.pointerEnter(resizer); |
| 2104 | |
| 2105 | // actual locations do not matter, the delta matters between events for the calculation of useMove |
| 2106 | fireEvent.pointerDown(resizer, {pointerType: 'mouse', pointerId: 1, pageX: 0, pageY: 30}); |
| 2107 | fireEvent.pointerMove(resizer, {pointerType: 'mouse', pointerId: 1, pageX: delta, pageY: 25}); |
| 2108 | fireEvent.pointerUp(resizer, {pointerType: 'mouse', pointerId: 1}); |
| 2109 | } |
| 2110 | |
| 2111 | function resizeTable(clientWidth, newValue) { |
| 2112 | clientWidth.mockImplementation(() => newValue); |
nothing calls this directly
no test coverage detected