mirror of
https://github.com/reactos/ahk_tests.git
synced 2025-03-02 17:45:31 +00:00
[AHK_7-Zip_9.20]
2.AddArchive: Sometimes 'Compressing' window doesn't close fast and window detection can't help here much, so, add timeout loop. Test succeeds in 2k3 SP1. svn path=/trunk/ahk_tests/; revision=2017
This commit is contained in:
parent
f60eef925c
commit
ceca1a3751
@ -81,11 +81,24 @@ else
|
||||
TestsFailed("Unable to click 'OK' button in 'Add to Archive' window.")
|
||||
else
|
||||
{
|
||||
; 'Compressing' window appears just too fast for WinWait...
|
||||
iTimeOut := 1000
|
||||
while (iTimeOut > 0)
|
||||
{
|
||||
IfExist, %A_ProgramFiles%\7-Zip\AHK_Test\SampleFile.7z
|
||||
break
|
||||
else
|
||||
{
|
||||
iTimeOut--
|
||||
Sleep, 100
|
||||
}
|
||||
}
|
||||
|
||||
IfNotExist, %A_ProgramFiles%\7-Zip\AHK_Test\SampleFile.7z
|
||||
TestsFailed("'" A_ProgramFiles "\7-Zip\AHK_Test\SampleFile.7z' doesn't exist.")
|
||||
TestsFailed("'" A_ProgramFiles "\7-Zip\AHK_Test\SampleFile.7z' doesn't exist (iTimeOut=" iTimeOut ").")
|
||||
else
|
||||
{
|
||||
TestsOK("Created archive '" A_ProgramFiles "\7-Zip\AHK_Test\SampleFile.7z' successfully.")
|
||||
TestsOK("Created archive '" A_ProgramFiles "\7-Zip\AHK_Test\SampleFile.7z' successfully (iTimeOut=" iTimeOut ").")
|
||||
TerminateApplication() ; We don't care now if application can close correctly, so, terminate
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user