Patch from Marco Zehe to fix tables not being declared as such via VoiceOver. Fixes #16085. Thanks!
(* Read Me.
This is the unit test runner for AppleScript. In order to run them from the command line, in adium/ folder, use
osascript unittest\ runner.applescript
piped to
tr '\r' '\n'
For some reason, Script Editor doesn't like the pipe character...
Anyway, this will compile and run the AppleScripts in ASUnitTests and report the results. The tr translates the old Mac CR to Unix LF. You should see Adium leap about while this is happening. Every unit test should clean up after itself, so that no windows are left lying around, extra accounts existing, etc.
The runner will report if any tests failed and the error number and message. It will also summarize with a number succeeded out of the total number.
error"Can't get any contacts because account is offline."
returnmissing value
endif
endif
endtell
endtell
endfindSomeParticipant
oncleanup()
tellapplication"Adium"
repeatwhileexistschatwindow1
closechatwindow1
endrepeat
endtell
endcleanup
endscript
onrun
--compile the .applescript files
do shell script"for i in ""ed formofunitTestDir&"*.applescript; do s=`basename $i .applescript`; osacompile -o ""ed formofunitTestDir&"/${s}.scpt ""ed formofunitTestDir&"/${s}.applescript ; done;"