( parts: string[], flags: Partial<ScreenshotRequestFlags> | undefined, )
| 127 | } |
| 128 | |
| 129 | export function appendScreenshotScriptFlags( |
| 130 | parts: string[], |
| 131 | flags: Partial<ScreenshotRequestFlags> | undefined, |
| 132 | ): void { |
| 133 | if (flags?.screenshotFullscreen) parts.push('--fullscreen'); |
| 134 | if (typeof flags?.screenshotMaxSize === 'number') { |
| 135 | parts.push('--max-size', String(flags.screenshotMaxSize)); |
| 136 | } |
| 137 | if (flags?.screenshotNoStabilize) parts.push('--no-stabilize'); |
| 138 | if (flags?.screenshotNormalizeStatusBar) parts.push('--normalize-status-bar'); |
| 139 | } |
| 140 | |
| 141 | export function readScreenshotScriptFlag(params: { |
| 142 | args: readonly string[]; |
no test coverage detected