[AHK_Firefox_12.0]

Add more debug output to find out why test times out.

svn path=/trunk/ahk_tests/; revision=1973
This commit is contained in:
Edijs Kolesnikovičs 2013-03-09 06:55:43 +00:00
parent 1d2854cb81
commit 9b90f600ee

View File

@ -38,13 +38,15 @@ else
TestsFailed("Failed to delete '" szDownloadTo "'.")
else
{
TestsInfo("Test 1.")
SendInput, {CTRLDOWN}l{CTRLUP}%szURL%{ENTER} ;Download some file
TestsInfo("Test 2.")
WinWaitActive, Opening %szFileName%,,10
if ErrorLevel
TestsFailed("'Opening " szFileName "' window failed to appear, so, downloading failed.")
else
{
TestsInfo("Test 3.")
; 'ControlClick' won't work here
SendInput, {ALTDOWN}s{ALTUP} ; Check 'Save file' radio button
; 'OK' button is disabled for split of second. There is no way for us to find out
@ -56,6 +58,7 @@ else
TestsFailed("'Opening " szFileName "' window failed to close despite 'ENTER' was sent.")
else
{
TestsInfo("Test 4.")
SetTitleMatchMode, 2 ; A window's title can contain WinTitle anywhere inside it to be a match.
WinWaitActive, of 1 file - Downloads,,10
if ErrorLevel