move the debug folder to the top level
[AROS.git] / test / rexx / simplerexx / test.rexx
blob764b2e354f45a2a4768d93aa3b497b7a7c871d77
1 /*
2 * SimpleRexx test...
4 * You need to run the SimpleRexxExample first...
5 */
7 Options FailAt 100
9 Options Results
12 * Try to read the window title bar
14 Address EXAMPLE_1 ReadTitle
16 if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
17 else say 'Window title is 'Result
20 * Bad WINDOW command...
22 Address EXAMPLE_1 "Window Display"
24 if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
25 else say 'Window is now open'
28 * Open the window
30 Address EXAMPLE_1 "Window Open"
32 if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
33 else say 'Window is now open'
36 * Open the window
38 Address EXAMPLE_1 "Window Open"
40 if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
41 else say 'Window is now open'
44 * Try to read the window title bar
46 Address EXAMPLE_1 ReadTitle
48 if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
49 else say 'Window title is 'Result
52 * Hide the window
54 Address EXAMPLE_1 "Window Close"
56 if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
57 else say 'Window is now closed'
60 * Try to hide the window again
62 Address EXAMPLE_1 "Window Close"
64 if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
65 else say 'Window is now closed'
68 * Send a command that does not exist
70 Address EXAMPLE_1 Junk
72 if rc > 0 then say 'Error was 'EXAMPLE.LASTERROR
73 else say 'The command worked!!!'
76 * Quit the program...
78 Address EXAMPLE_1 Quit