mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 09:31:15 +10:00
Restore native window animations and custom caption hit testing (#4888)
* feat: restore native window animations * fix: disable native caption button hit testing * test: remove fake window state assertions
This commit is contained in:
@@ -445,31 +445,3 @@ Describe "Invoke-WPFButton progress cleanup" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Invoke-WPFButton window state" {
|
||||
BeforeEach {
|
||||
New-WinUtilUiStateTestContext
|
||||
$script:sync.ProcessRunning = $true
|
||||
$script:sync.Form = [pscustomobject]@{
|
||||
WindowState = [Windows.WindowState]::Normal
|
||||
}
|
||||
}
|
||||
|
||||
AfterEach {
|
||||
Remove-Variable -Name sync -Scope Script -ErrorAction SilentlyContinue
|
||||
Remove-Variable -Name sync -Scope Global -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
It "maximizes a normal window" {
|
||||
Invoke-WPFButton -Button "WPFMaximizeButton"
|
||||
|
||||
$script:sync.Form.WindowState | Should -Be ([Windows.WindowState]::Maximized)
|
||||
}
|
||||
|
||||
It "restores a maximized window" {
|
||||
$script:sync.Form.WindowState = [Windows.WindowState]::Maximized
|
||||
|
||||
Invoke-WPFButton -Button "WPFMaximizeButton"
|
||||
|
||||
$script:sync.Form.WindowState | Should -Be ([Windows.WindowState]::Normal)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user