diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-18 02:42:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-18 02:42:37 +0200 |
| commit | da6bcd5969779bfe0396bcf89a8025d4375d611e (patch) | |
| tree | aece03633c003ba0fce01bc2564ad14e0fe9cac9 /scripts/test_windows_input.ps1 | |
| parent | b88e8116e9e1f7e2f6e8b211536311cd17feca9a (diff) | |
fix(windows): preserve mouse capture during refresh (#4319)
* fix(windows): preserve mouse capture during refresh
refs #4284
* test(windows): fix default input gauntlet invocation
* fix(windows): preserve pixel mouse transitions
refs #4284
Diffstat (limited to 'scripts/test_windows_input.ps1')
| -rw-r--r-- | scripts/test_windows_input.ps1 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/test_windows_input.ps1 b/scripts/test_windows_input.ps1 index dfbd41b4..28839a07 100644 --- a/scripts/test_windows_input.ps1 +++ b/scripts/test_windows_input.ps1 @@ -29,8 +29,10 @@ $root = [IO.Directory]::CreateDirectory($OutputDirectory).FullName $null = Invoke-GauntletProcess $python @($reportScript, 'matrix', '--output', (Join-Path $root 'matrix.json')) $matrix = Read-GauntletJson (Join-Path $root 'matrix.json') if ($MatrixOnly) { Write-Host "Matrix: $root/matrix.json"; exit 0 } +$caseSelectionProvided = $PSBoundParameters.ContainsKey('Cases') +$Cases = @($Cases | Where-Object { -not [string]::IsNullOrWhiteSpace($_) }) $knownCases = @($matrix.cases | ForEach-Object id) -if (@($Cases).Count -and @($Cases | Where-Object { $_ -notin $knownCases }).Count) { throw 'Unknown case selection' } +if (($caseSelectionProvided -and -not @($Cases).Count) -or @($Cases | Where-Object { $_ -notin $knownCases }).Count) { throw 'Unknown case selection' } $selectedCases = if (@($Cases).Count) { @($matrix.cases | Where-Object id -in $Cases) } else { @($matrix.cases) } if (-not $IsWindows) { throw 'Real-host qualification requires Windows and an interactive desktop; no tests passed' } if (-not $AllowInputInjection) { throw 'Read scripts/windows_input/README.md, then explicitly pass -AllowInputInjection on an isolated desktop' } |
