mirror of
https://github.com/reactos/ahk_tests.git
synced 2024-11-27 05:20:25 +00:00
[AHK_Firefox]
Make testing not to fail completely when 'Default Browser' dialog appears. svn path=/trunk/ahk_tests/; revision=1969
This commit is contained in:
parent
1b6792c516
commit
6d448a17db
@ -89,7 +89,28 @@ if bContinue
|
||||
}
|
||||
else
|
||||
{
|
||||
TestsOK("")
|
||||
WinWaitActive, Default Browser,,3 ; This shouldn't happen
|
||||
if not ErrorLevel
|
||||
{
|
||||
TestsFailed++ ; 'Default Browser' dialog appeared -> this is a failure
|
||||
szDefaultBrowserBug = 4107
|
||||
TestsInfo("'Default Browser' window appeared, but it shouldn't (#CORE-" szDefaultBrowserBug "?). Ignoring.")
|
||||
TestsTotal++
|
||||
SendInput, !y ; Hit 'Yes' in 'Default Browser' dialog
|
||||
WinWaitClose, Default Browser,,3
|
||||
if ErrorLevel
|
||||
TestsFailed("'Default Browser' dialog appeared (when it shouldn't [#CORE-" szDefaultBrowserBug "?]) we sent Alt+Y to hit 'Yes' button, but dialog failed to close.")
|
||||
else
|
||||
{
|
||||
WinWaitActive, Mozilla Firefox Start Page - Mozilla Firefox,, 3
|
||||
if ErrorLevel
|
||||
TestsFailed("'Mozilla Firefox Start Page - Mozilla Firefox' window failed to appear despite 'Default Browser' (#CORE-" szDefaultBrowserBug "?) dialog was closed.")
|
||||
else
|
||||
TestsOK("Despite 'Default Browser' dialog appeared (when it shouldn't [#CORE-" szDefaultBrowserBug "?]), we managed to start Firefox.")
|
||||
}
|
||||
}
|
||||
else
|
||||
TestsOK("Everything went as expected.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -90,7 +90,28 @@ if bContinue
|
||||
}
|
||||
else
|
||||
{
|
||||
TestsOK("")
|
||||
WinWaitActive, Default Browser,,3 ; This shouldn't happen
|
||||
if not ErrorLevel
|
||||
{
|
||||
TestsFailed++ ; 'Default Browser' dialog appeared -> this is a failure
|
||||
szDefaultBrowserBug = 4107
|
||||
TestsInfo("'Default Browser' window appeared, but it shouldn't (#CORE-" szDefaultBrowserBug "?). Ignoring.")
|
||||
TestsTotal++
|
||||
SendInput, !y ; Hit 'Yes' in 'Default Browser' dialog
|
||||
WinWaitClose, Default Browser,,3
|
||||
if ErrorLevel
|
||||
TestsFailed("'Default Browser' dialog appeared (when it shouldn't [#CORE-" szDefaultBrowserBug "?]) we sent Alt+Y to hit 'Yes' button, but dialog failed to close.")
|
||||
else
|
||||
{
|
||||
WinWaitActive, Mozilla Firefox Start Page - Mozilla Firefox,, 3
|
||||
if ErrorLevel
|
||||
TestsFailed("'Mozilla Firefox Start Page - Mozilla Firefox' window failed to appear despite 'Default Browser' (#CORE-" szDefaultBrowserBug "?) dialog was closed.")
|
||||
else
|
||||
TestsOK("Despite 'Default Browser' dialog appeared (when it shouldn't [#CORE-" szDefaultBrowserBug "?]), we managed to start Firefox.")
|
||||
}
|
||||
}
|
||||
else
|
||||
TestsOK("Everything went as expected.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,28 @@ if bContinue
|
||||
}
|
||||
else
|
||||
{
|
||||
TestsOK("")
|
||||
WinWaitActive, Default Browser,,3 ; This shouldn't happen
|
||||
if not ErrorLevel
|
||||
{
|
||||
TestsFailed++ ; 'Default Browser' dialog appeared -> this is a failure
|
||||
szDefaultBrowserBug = 4107
|
||||
TestsInfo("'Default Browser' window appeared, but it shouldn't (#CORE-" szDefaultBrowserBug "?). Ignoring.")
|
||||
TestsTotal++
|
||||
SendInput, !y ; Hit 'Yes' in 'Default Browser' dialog
|
||||
WinWaitClose, Default Browser,,3
|
||||
if ErrorLevel
|
||||
TestsFailed("'Default Browser' dialog appeared (when it shouldn't [#CORE-" szDefaultBrowserBug "?]) we sent Alt+Y to hit 'Yes' button, but dialog failed to close.")
|
||||
else
|
||||
{
|
||||
WinWaitActive, Mozilla Firefox Start Page - Mozilla Firefox,, 3
|
||||
if ErrorLevel
|
||||
TestsFailed("'Mozilla Firefox Start Page - Mozilla Firefox' window failed to appear despite 'Default Browser' (#CORE-" szDefaultBrowserBug "?) dialog was closed.")
|
||||
else
|
||||
TestsOK("Despite 'Default Browser' dialog appeared (when it shouldn't [#CORE-" szDefaultBrowserBug "?]), we managed to start Firefox.")
|
||||
}
|
||||
}
|
||||
else
|
||||
TestsOK("Everything went as expected.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user