Fix to do not update state of render task in case of uploadOnly
[platform/core/uifw/dali-core.git] / automated-tests / src / dali / utc-Dali-TypeRegistry.cpp
index c971314..7c7f875 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@
 #include <dali-test-suite-utils.h>
 #include <dali/integration-api/events/hover-event-integ.h>
 #include <dali/integration-api/events/touch-event-integ.h>
+#include <dali/internal/common/const-string.h>
 #include <dali/internal/event/common/type-info-impl.h>
 #include <dali/public-api/dali-core.h>
 #include <stdlib.h>
@@ -1393,6 +1394,8 @@ int UtcDaliTypeRegistryAnimatablePropertyComponentRegistrationP(void)
   unsigned int customActorIndices = indices.Size();
   DALI_TEST_EQUALS(actorIndices + 3u, customActorIndices, TEST_LOCATION); // Custom property + registered property
 
+  application.GetScene().Add(customActor);
+
   // Attempt to animate component property, it should not crash
   Animation animation = Animation::New(1.0f);
   animation.AnimateTo(Property(customActor, animatablePropertyComponentIndex1), 200.0f);
@@ -1416,6 +1419,7 @@ int UtcDaliTypeRegistryAnimatablePropertyComponentRegistrationVector2AnimateByP(
   BaseHandle handle = typeInfo.CreateInstance();
   DALI_TEST_CHECK(handle);
   Actor customActor = Actor::DownCast(handle);
+  application.GetScene().Add(customActor);
   DALI_TEST_CHECK(customActor);
 
   const unsigned int index           = ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX;
@@ -1469,6 +1473,7 @@ int UtcDaliTypeRegistryAnimatablePropertyComponentRegistrationVector3AnimateByP(
   BaseHandle handle = typeInfo.CreateInstance();
   DALI_TEST_CHECK(handle);
   Actor customActor = Actor::DownCast(handle);
+  application.GetScene().Add(customActor);
   DALI_TEST_CHECK(customActor);
 
   const unsigned int index           = ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX;
@@ -1528,6 +1533,7 @@ int UtcDaliTypeRegistryAnimatablePropertyComponentRegistrationVector4AnimateByP(
   BaseHandle handle = typeInfo.CreateInstance();
   DALI_TEST_CHECK(handle);
   Actor customActor = Actor::DownCast(handle);
+  application.GetScene().Add(customActor);
   DALI_TEST_CHECK(customActor);
 
   const unsigned int index           = ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX;
@@ -1686,7 +1692,7 @@ int UtcDaliTypeRegistryChildPropertyRegistrationP(void)
 
   // check the child property type
   Internal::TypeInfo& typeInfoImpl = GetImplementation(typeInfo);
-  Property::Type      type         = typeInfoImpl.GetChildPropertyType(typeInfoImpl.GetChildPropertyIndex("childProp4"));
+  Property::Type      type         = typeInfoImpl.GetChildPropertyType(typeInfoImpl.GetChildPropertyIndex(Dali::Internal::ConstString("childProp4")));
   DALI_TEST_EQUALS(type, Property::INTEGER, TEST_LOCATION);
 
   std::string unRegisteredChildName(typeInfoImpl.GetChildPropertyName(CHILD_PROPERTY_REGISTRATION_START_INDEX + 4));
@@ -1946,7 +1952,7 @@ int UtcDaliPropertyRegistrationFunctions(void)
   }
   catch(DaliException& e)
   {
-    DALI_TEST_ASSERT(e, "! \"GetProperty", TEST_LOCATION);
+    DALI_TEST_ASSERT(e, "!\"GetProperty", TEST_LOCATION);
   }
   END_TEST;
 }
@@ -1966,7 +1972,7 @@ int UtcDaliPropertyRegistrationAddSameIndex(void)
   }
   catch(DaliException& e)
   {
-    DALI_TEST_ASSERT(e, "! \"Property index already added", TEST_LOCATION);
+    DALI_TEST_ASSERT(e, "!\"Property index already added", TEST_LOCATION);
   }
 
   int animatablePropertyIndex = ANIMATABLE_PROPERTY_REGISTRATION_START_INDEX + 100;
@@ -1981,7 +1987,7 @@ int UtcDaliPropertyRegistrationAddSameIndex(void)
   }
   catch(DaliException& e)
   {
-    DALI_TEST_ASSERT(e, "! \"Property index already added", TEST_LOCATION);
+    DALI_TEST_ASSERT(e, "!\"Property index already added", TEST_LOCATION);
   }
   END_TEST;
 }