( device: DeviceInfo, button: ClickButton, context: DispatchContext | undefined, )
| 267 | } |
| 268 | |
| 269 | function assertAlternateClickSupported( |
| 270 | device: DeviceInfo, |
| 271 | button: ClickButton, |
| 272 | context: DispatchContext | undefined, |
| 273 | ): void { |
| 274 | const validationError = getClickButtonValidationError({ |
| 275 | commandLabel: 'click', |
| 276 | platform: publicPlatformString(device), |
| 277 | button, |
| 278 | count: context?.count, |
| 279 | intervalMs: context?.intervalMs, |
| 280 | holdMs: context?.holdMs, |
| 281 | jitterPx: context?.jitterPx, |
| 282 | doubleTap: context?.doubleTap, |
| 283 | }); |
| 284 | if (validationError) { |
| 285 | throw validationError; |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | async function runLinuxAlternateClick( |
| 290 | x: number, |
no test coverage detected