Changeset 355 for trunk/TestCase/SimpleTestCase/SimpleTestCase.ab
- Timestamp:
- Oct 13, 2007, 2:11:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TestCase/SimpleTestCase/SimpleTestCase.ab
r236 r355 2 2 3 3 #console 4 5 Dim hStdOut = _System_hConsoleOut 6 7 Dim csbi As CONSOLE_SCREEN_BUFFER_INFO 8 GetConsoleScreenBufferInfo(hStdOut, csbi) 9 4 10 #include "SimpleTestCase.idx" 5 11 … … 7 13 Dim resultStr As String 8 14 If isSuccessful Then 9 resultStr = Ex"OK \t"15 resultStr = Ex"OK " 10 16 Else 11 17 resultStr = Ex"FAILURE!" 12 18 End If 13 19 14 Print resultStr, msg 20 If Not isSuccessful Then 21 SetConsoleTextAttribute(hStdOut, BACKGROUND_RED Or BACKGROUND_GREEN Or BACKGROUND_INTENSITY) 22 End If 23 24 Print resultStr; msg 25 26 If Not isSuccessful Then 27 SetConsoleTextAttribute(hStdOut, csbi.wAttributes) 28 End If 15 29 End Function 16 30
Note:
See TracChangeset
for help on using the changeset viewer.