If there is no child property, makes warning message instead of Assert
and ignores behaviour.
Change-Id: I0ac8936e203607a14a6891228b54955cf3702f7a
Signed-off-by: minho.sun <minho.sun@samsung.com>
Property::Type type = typeInfoImpl.GetChildPropertyType( typeInfoImpl.GetChildPropertyIndex("childProp4") );
DALI_TEST_EQUALS( type, Property::INTEGER, TEST_LOCATION );
+ std::string unRegisteredChildName( typeInfoImpl.GetChildPropertyName( CHILD_PROPERTY_REGISTRATION_START_INDEX + 4 ) );
+ DALI_TEST_EQUALS( unRegisteredChildName, "", TEST_LOCATION );
// Create a child actor
Actor childActor = Actor::New();
return GetImplementation(base).GetChildPropertyName( index );
}
- DALI_ASSERT_ALWAYS( ! "Cannot find property index" ); // use the same assert as Object
+ DALI_LOG_WARNING("Cannot find property index");
+
+ static std::string emptyString;
+ return emptyString;
}
Property::Type TypeInfo::GetChildPropertyType( Property::Index index ) const