Changeset 146 for trunk/Forms
- Timestamp:
- Aug 30, 2022, 7:56:17 PM (2 years ago)
- Location:
- trunk/Forms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormTest.lfm
r127 r146 10 10 OnClose = FormClose 11 11 OnCreate = FormCreate 12 OnDestroy = FormDestroy13 12 OnShow = FormShow 14 LCLVersion = '2.2. 0.4'13 LCLVersion = '2.2.2.0' 15 14 object ListViewTestCases: TListView 16 15 Left = 19 … … 55 54 Anchors = [akLeft, akBottom] 56 55 Caption = ' ' 56 ParentColor = False 57 57 end 58 58 object ActionList1: TActionList -
trunk/Forms/UFormTest.pas
r129 r146 5 5 uses 6 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ComCtrls, StdCtrls, 7 ActnList, Menus, UTest ;7 ActnList, Menus, UTest, UTestCase; 8 8 9 9 type … … 26 26 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 27 27 procedure FormCreate(Sender: TObject); 28 procedure FormDestroy(Sender: TObject);29 28 procedure FormShow(Sender: TObject); 30 29 procedure ListViewTestCasesData(Sender: TObject; Item: TListItem); … … 59 58 Item.Caption := Name; 60 59 Item.Data := TestCases[Item.Index]; 61 Item.SubItems.Add(ResultText[ Result]);60 Item.SubItems.Add(ResultText[TestResult]); 62 61 end; 63 62 end; … … 97 96 Failed := 0; 98 97 for I := 0 to TestCases.Count - 1 do begin 99 case TestCases[I]. Result of98 case TestCases[I].TestResult of 100 99 trPassed: Inc(Passed); 101 100 trFailed: Inc(Failed); … … 148 147 end; 149 148 150 procedure TFormTest.FormDestroy(Sender: TObject);151 begin152 end;153 154 149 procedure TFormTest.FormShow(Sender: TObject); 155 150 begin
Note:
See TracChangeset
for help on using the changeset viewer.