[UTC/ITC][dali-core][Non-ACR][Fix to compare the TypeInfo index correctly] 74/197674/2
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Tue, 13 Nov 2018 11:52:03 +0000 (20:52 +0900)
committersunghyun kim <scholb.kim@samsung.com>
Wed, 16 Jan 2019 01:11:14 +0000 (01:11 +0000)
Change-Id: I21204327c271c5a1f1dd7a97af28891e8b71687f

src/itc/dali-core/property-registration/ITs-property-registration-impl.h
src/itc/dali-core/type-info/ITs-type-info.cpp
src/utc/dali-core/type-info/utc-dali-type-info.cpp
src/utc/dali-core/type-registry/utc-dali-type-registry.cpp

index 12bcc7cc0151fdf7fa19d6480203169f8487a86f..63d9754dc8971495cc4d2ab08e700bb2d50cdf28 100755 (executable)
@@ -368,9 +368,9 @@ void VTPropertyRegistrationAnimatableWithComponents001()
        DALI_CHECK_FAIL( getPropertyTypeAnimatable != propertyTypeAnimatable, "Set/ Get property types mismatch for registered animatable property.");
        
        g_typeInfo_pr.GetPropertyIndices( g_indices_pr );
-       DALI_CHECK_FAIL( g_indices_pr.Size() != (uPropertyCountAfterReg - uInitialAnimatableProperty), " AnimatablePropertyRegistration is failed." );
-       
-       
+       DALI_CHECK_FAIL( g_indices_pr.Size() != g_actorCustom_pr.GetPropertyCount(), " AnimatablePropertyRegistration is failed." );
+
+
        //Registering animatable property components
        AnimatablePropertyComponentRegistration animatablePropertyComponentX( typeRegistration, STR_ANIMATABLE_COMPONENT_X_NAME, nAnimatableComponentIndexX, nAnimatablePropertyIndex, uCompIndX );
        AnimatablePropertyComponentRegistration animatablePropertyComponentY( typeRegistration, STR_ANIMATABLE_COMPONENT_Y_NAME, nAnimatableComponentIndexY, nAnimatablePropertyIndex, uCompIndY );
index 71c5c727e0a2043be5e26dad8721a0e70ef69bdd..0e26ff20aeb6f1e1e26a3a1304a785c7a7a51ff3 100755 (executable)
@@ -463,7 +463,7 @@ void TypeInfoGetPropertyIndices()
        
        Property::IndexContainer indices;
        typeInfo.GetPropertyIndices( indices );
-       DALI_CHECK_FAIL(indices.Size() != 1u,  "GetPropertyIndices failed to retrive the size .");
+       DALI_CHECK_FAIL(indices.Size() != customActor.GetPropertyCount(),  "GetPropertyIndices failed to retrive the size .");
        DaliLog::PrintPass();
 }
 
index 1dc9308126881793bd93d92e26ef6e93c73ea112..bd34567ecdaa547392812e8e1453203d604aa370 100755 (executable)
@@ -688,7 +688,7 @@ void TypeInfoGetPropertyCount()
 
   Property::IndexContainer indices;
   typeInfo.GetPropertyIndices( indices );
-  DALI_CHECK_FAIL(indices.Size() != 1u,  "GetPropertyIndices failed to retrive the size .");
+  DALI_CHECK_FAIL(indices.Size() != customActor.GetPropertyCount(),  "GetPropertyIndices failed to retrive the size .");
   DaliLog::PrintPass();
 }
 
@@ -709,7 +709,7 @@ void TypeInfoGetPropertyIndices()
 
   Property::IndexContainer indices;
   typeInfo.GetPropertyIndices( indices );
-  DALI_CHECK_FAIL(indices.Size() != 1u,  "GetPropertyIndices failed to retrive the size .");
+  DALI_CHECK_FAIL(indices.Size() != customActor.GetPropertyCount(),  "GetPropertyIndices failed to retrive the size .");
   DaliLog::PrintPass();
 }
 
@@ -730,7 +730,7 @@ void TypeInfoGetPropertyName()
 
   Property::IndexContainer indices;
   typeInfo.GetPropertyIndices( indices );
-  DALI_CHECK_FAIL(indices.Size() != 1u,  "GetPropertyIndices failed to retrive the size .");
+  DALI_CHECK_FAIL(indices.Size() != customActor.GetPropertyCount(),  "GetPropertyIndices failed to retrive the size .");
   DaliLog::PrintPass();
 }
 
index 76656cd0adec17194bf4eda4f98c5e2185a53b7b..3deae50b97134e9296b22f70e30545faa8f1d781 100755 (executable)
@@ -761,7 +761,7 @@ void TypeRegistryPropertyRegistrationP()
   // Check property count of type-info is 1
   Property::IndexContainer indices;
   typeInfo.GetPropertyIndices( indices );
-  DALI_CHECK_FAIL( indices.Size() != 1u, "GetPropertyIndices is failed" );
+  DALI_CHECK_FAIL( indices.Size() != typeInfo.GetPropertyCount(), "GetPropertyIndices is failed" );
 
   // Ensure indices returned from actor and customActor differ by two
   Actor actor = Actor::New();