فهرست منبع

* Use prefix for enum

Michaël Van Canneyt 1 سال پیش
والد
کامیت
33917ee19b
1فایلهای تغییر یافته به همراه8 افزوده شده و 8 حذف شده
  1. 8 8
      packages/vcl-compat/tests/tciotuils.pas

+ 8 - 8
packages/vcl-compat/tests/tciotuils.pas

@@ -189,15 +189,15 @@ procedure TTestTPath.TestGetExtendedPrefix;
     DoDirSeparators(aPath);
     Str(aExpected,S);
     {$IFNDEF WINDOWS}
-    aExpected:=pptNoPrefix;
+    aExpected:=TPathPrefixType.pptNoPrefix;
     {$ENDIF}
     AssertTrue(aPath+' -> '+S,aExpected=TPath.GetExtendedPrefix(aPath));
   end;
 
 begin
-  TestIt(pptNoPrefix,'/a/b/c.txt');
-  TestIt(pptExtended,'//?/a/b/c.txt');
-  TestIt(pptExtendedUNC,'//?/UNC/a/b/c.txt');
+  TestIt(TPathPrefixType.pptNoPrefix,'/a/b/c.txt');
+  TestIt(TPathPrefixType.pptExtended,'//?/a/b/c.txt');
+  TestIt(TPathPrefixType.pptExtendedUNC,'//?/UNC/a/b/c.txt');
 end;
 
 procedure TTestTPath.TestIsDriveRooted;
@@ -1099,10 +1099,10 @@ procedure TTestTPath.TestGetSetAttributes;
 
 Const
 {$IFDEF UNIX}
-  FAS = [faOwnerRead, faOwnerWrite, faOwnerExecute,
-         faGroupRead, faGroupWrite, faGroupExecute,
-         faOthersRead, faOthersWrite, faOthersExecute,
-         faUserIDExecution, faGroupIDExecution, faStickyBit];
+  FAS = [TFileAttribute.faOwnerRead, TFileAttribute.faOwnerWrite, TFileAttribute.faOwnerExecute,
+         TFileAttribute.faGroupRead, TFileAttribute.faGroupWrite, TFileAttribute.faGroupExecute,
+         TFileAttribute.faOthersRead, TFileAttribute.faOthersWrite, TFileAttribute.faOthersExecute,
+         TFileAttribute.faUserIDExecution, TFileAttribute.faGroupIDExecution, TFileAttribute.faStickyBit];
 {$ENDIF}