office-gobmx/automation/source/miniapp/test.bas

127 lines
1.5 KiB
QBasic
Raw Normal View History

2002-11-20 04:28:44 -06:00
'encoding UTF-8 Do not remove or change this line!
2002-11-18 04:19:28 -06:00
sub main
' cMassentest
2002-11-20 04:28:44 -06:00
' DisplayHid
2002-11-18 04:19:28 -06:00
cTestdialog
cSysDlgTest
cFileOpenTest
SidWintree
FileExit
end sub
testcase cMassentest
2002-11-20 04:28:44 -06:00
2002-11-18 04:19:28 -06:00
DisplayHid
resetapplication
FileDialog
kontext "GrosserTestDlg"
dim c,t,lang,i
c = 0
lang = "0123456789abcdef"
lang = lang + lang
lang = lang + lang
lang = lang + lang
lang = lang + lang
lang = lang + lang
lang = lang + lang
lang = lang + lang
lang = lang + lang
nodebug
while 1
c = c + 1
t = str(c)
MultiLineEdit.SetText t
CheckBox.check lang
CheckBox.uncheck lang
for i = 1 to 200 : next
beep
wend
endcase
testcase cFileOpenTest
FileOpenTest
2002-11-20 04:28:44 -06:00
setclipboard wintree
2002-11-18 04:19:28 -06:00
kontext
active.cancel
endcase
testcase cSysDlgTest
SysDialogs
2002-11-20 04:28:44 -06:00
setclipboard wintree
2002-11-18 04:19:28 -06:00
kontext
active.yes
2002-11-20 04:28:44 -06:00
setclipboard wintree
2002-11-18 04:19:28 -06:00
active.ok
active.Cancel
SysDialogs
active.Cancel
active.ok
endcase
testcase cTestdialog
FileDialog
kontext "GrosserTestDlg"
CheckBox.uncheck
TriStateBox.tristate
'OKButton
' TimeField.settext("fhsdjk")
MultiLineEdit.SetText "Das war der Text: '"+MultiLineEdit.GetText+"'"
RadioButton1.check
RadioButton2.check
' MultiListBox.select 2
ComboBox.select("Dritter")
DateBox.select("1.1.91")
GrosserTestDlg.ok
endcase
sub LoadIncludeFiles
2002-11-20 04:28:44 -06:00
start "miniapp.exe", "-enableautomation"
2002-11-18 04:19:28 -06:00
use "test.win"
use "test.sid"
testexit
end sub
sub testenter
end sub
sub testexit
dim xx
xx = resetapplication
if xx > "" then warnlog xx
end sub