Procházet zdrojové kódy

* Adapted test for changes in r25094

git-svn-id: branches/joost/classattributes@25095 -
joost před 12 roky
rodič
revize
bb9e4a2f15
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      tests/test/tclassattribute9.pp

+ 4 - 4
tests/test/tclassattribute9.pp

@@ -16,15 +16,15 @@ type
   end;
 
 var
-  rtd: PExtRTTIData;
+  ad: PAttributeData;
   AClassAttribute: TCustomAttribute;
 
 begin
-  rtd := GetExtRTTIData(TMyObject.ClassInfo);
-  if rtd^.AttributeData^.AttributeCount<>1 then
+  ad := GetAttributeData(TMyObject.ClassInfo);
+  if ad^.AttributeCount<>1 then
     halt(1);
 
-  AClassAttribute := GetClassAttribute(rtd,0) as TCustomAttribute;
+  AClassAttribute := GetAttribute(ad,0);
   if AClassAttribute = nil then
     halt(2);
   writeln('ok');