[UTC][dali-core][NON-ACR][Missing APIs implementation]
authorshiva.jm <shiva.jm@samsung.com>
Tue, 5 Jul 2016 14:15:50 +0000 (19:45 +0530)
committershiva.jm <shiva.jm@samsung.com>
Thu, 7 Jul 2016 09:53:29 +0000 (15:23 +0530)
This patch contains the missing APIs of Actor from dali-core.

Change-Id: I9fae0bd8c54fa22a247538ae468694d60d9c5b8b
Signed-off-by: shiva.jm <shiva.jm@samsung.com>
src/utc/dali-core/actor/utc-dali-actor-impl.h
src/utc/dali-core/actor/utc-dali-actor.cpp
src/utc/dali-core/tct-dali-core-core_common_iot.h
src/utc/dali-core/tct-dali-core-core_mobile.h
src/utc/dali-core/tct-dali-core-core_tv.h
src/utc/dali-core/tct-dali-core-core_wearable.h

index 66063c3..4ed3f6b 100755 (executable)
@@ -2781,3 +2781,65 @@ void ActorRemoveP()
   DaliLog::PrintPass();
 }
 
+void ActorSetInheritPositionP()
+{
+
+  Actor parent = Actor::New();
+  Vector3 parentPosition( 1.0f, 2.0f, 3.0f );
+  parent.SetPosition( parentPosition );
+  parent.SetParentOrigin( ParentOrigin::CENTER );
+  parent.SetAnchorPoint( AnchorPoint::CENTER );
+  Stage::GetCurrent().Add( parent );
+
+  Actor child = Actor::New();
+  child.SetParentOrigin( ParentOrigin::CENTER );
+  child.SetAnchorPoint( AnchorPoint::CENTER );
+  Vector3 childPosition( 10.0f, 11.0f, 12.0f );
+  child.SetPosition( childPosition );
+  parent.Add( child );
+
+  // The actors should not have a world position yet
+  DALI_CHECK_FAIL(parent.GetCurrentWorldPosition() !=  Vector3::ZERO, "Position of parent is wrong." );
+  DALI_CHECK_FAIL(child.GetCurrentWorldPosition() != Vector3::ZERO,   "Position of child is wrong." );
+
+  // first test default, which is to inherit position
+  DALI_CHECK_FAIL(child.IsPositionInherited() != true,   "Inherited Position of child is wrong." );
+
+  //Change child position
+  Vector3 childOffset( -1.0f, 1.0f, 0.0f );
+  child.SetPosition( childOffset );
+
+  // Use local position as world postion
+  child.SetInheritPosition( false );
+  DALI_CHECK_FAIL(child.IsPositionInherited() != false,   "Inherited Position of child is wrong." );
+
+  DaliLog::PrintPass();
+
+}
+
+void ActorIsPositionInheritedP()
+{
+
+  Actor parent = Actor::New();
+  Vector3 parentPosition( 1.0f, 2.0f, 3.0f );
+  parent.SetPosition( parentPosition );
+  parent.SetParentOrigin( ParentOrigin::CENTER );
+  parent.SetAnchorPoint( AnchorPoint::CENTER );
+  Stage::GetCurrent().Add( parent );
+
+  Actor child = Actor::New();
+  child.SetParentOrigin( ParentOrigin::CENTER );
+  child.SetAnchorPoint( AnchorPoint::CENTER );
+  Vector3 childPosition( 10.0f, 11.0f, 12.0f );
+  child.SetPosition( childPosition );
+  parent.Add( child );
+
+  // The actors should not have a world position yet
+  DALI_CHECK_FAIL(parent.GetCurrentWorldPosition() !=  Vector3::ZERO, "Position of parent is wrong." );
+  DALI_CHECK_FAIL(child.GetCurrentWorldPosition() != Vector3::ZERO,   "Position of child is wrong." );
+
+  // first test default, which is to inherit position
+  DALI_CHECK_FAIL(child.IsPositionInherited() != true,   "Inherited Position of child is wrong." );
+
+  DaliLog::PrintPass();
+}
index 1d042c1..d5e32a7 100755 (executable)
@@ -129,7 +129,10 @@ namespace
     ACTOR_GET_LEAVE_REQUIRED_P2,
     ACTOR_GET_TARGET_SIZE_P,
     ACTOR_SCREEN_TO_LOCAL_P,
-    ACTOR_REMOVE_P
+    ACTOR_REMOVE_P,
+    ACTOR_SET_INHERIT_POSITION_P,
+    ACTOR_IS_POSITION_INHERITED_P
+
   };
 
   struct Actor_TestApp : public ConnectionTracker
@@ -565,6 +568,14 @@ namespace
         case ACTOR_REMOVE_P:
           ActorRemoveP();
           break;
+
+        case ACTOR_SET_INHERIT_POSITION_P:
+          ActorSetInheritPositionP();
+          break;
+
+        case ACTOR_IS_POSITION_INHERITED_P:
+          ActorIsPositionInheritedP();
+          break;
       }
     }
 
@@ -1050,7 +1061,7 @@ namespace
 
 /**
  * @testcase           UtcDaliActorNewP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if New api works or not.
  */
 
@@ -1068,7 +1079,7 @@ int UtcDaliActorNewP(void)
 
 /**
  * @testcase           UtcDaliActorDowncastP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if DownCast api works or not.
  */
 
@@ -1086,7 +1097,7 @@ int UtcDaliActorDowncastP(void)
 
 /**
  * @testcase           UtcDaliActorGetIdP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetId api works or not.
  */
 
@@ -1104,7 +1115,7 @@ int UtcDaliActorGetIdP(void)
 
 /**
  * @testcase           UtcDaliActorGetChildCountP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetChildCount api works or not.
  */
 
@@ -1122,7 +1133,7 @@ int UtcDaliActorGetChildCountP(void)
 
 /**
  * @testcase           UtcDaliActorSetNameP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetName api works or not.
  */
 
@@ -1140,7 +1151,7 @@ int UtcDaliActorSetNameP(void)
 
 /**
  * @testcase           UtcDaliActorGetNameP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetName api works or not.
  */
 
@@ -1158,7 +1169,7 @@ int UtcDaliActorGetNameP(void)
 
 /**
  * @testcase           UtcDaliActorSetDrawmodeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetDrawmode api works or not.
  */
 
@@ -1176,7 +1187,7 @@ int UtcDaliActorSetDrawmodeP(void)
 
 /**
  * @testcase           UtcDaliActorGetDrawmodeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetDrawmode api works or not.
  */
 
@@ -1194,7 +1205,7 @@ int UtcDaliActorGetDrawmodeP(void)
 
 /**
  * @testcase           UtcDaliActorGetChildAtP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetChildAt api works or not.
  */
 
@@ -1212,7 +1223,7 @@ int UtcDaliActorGetChildAtP(void)
 
 /**
  * @testcase           UtcDaliActorGetParentP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetParent api works or not.
  */
 
@@ -1230,7 +1241,7 @@ int UtcDaliActorGetParentP(void)
 
 /**
  * @testcase           UtcDaliActorFindChildByNameP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if FindChildByName api works or not.
  */
 
@@ -1248,7 +1259,7 @@ int UtcDaliActorFindChildByNameP(void)
 
 /**
  * @testcase           UtcDaliActorFindChildByIdP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if FindChildById api works or not.
  */
 
@@ -1266,7 +1277,7 @@ int UtcDaliActorFindChildByIdP(void)
 
 /**
  * @testcase           UtcDaliActorUnparentP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if Unparent api works or not.
  */
 
@@ -1284,7 +1295,7 @@ int UtcDaliActorUnparentP(void)
 
 /**
  * @testcase           UtcDaliActorUnparentAndResetP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if UnparentAndReset api works or not.
  */
 
@@ -1302,7 +1313,7 @@ int UtcDaliActorUnparentAndResetP(void)
 
 /**
  * @testcase           UtcDaliActorAddP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if Add api works or not.
  */
 
@@ -1320,7 +1331,7 @@ int UtcDaliActorAddP(void)
 
 /**
  * @testcase           UtcDaliActorSetKeyboardFocusableP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetKeyboardFocusable api works or not.
  */
 
@@ -1338,7 +1349,7 @@ int UtcDaliActorSetKeyboardFocusableP(void)
 
 /**
  * @testcase           UtcDaliActorIsKeyboardFocusableP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if IsKeyboardFocusable api works or not.
  */
 
@@ -1356,7 +1367,7 @@ int UtcDaliActorIsKeyboardFocusableP(void)
 
 /**
  * @testcase           UtcDaliActorSetVisibleP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetVisible api works or not.
  */
 
@@ -1374,7 +1385,7 @@ int UtcDaliActorSetVisibleP(void)
 
 /**
  * @testcase           UtcDaliActorIsVisibleP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if IsVisible api works or not.
  */
 
@@ -1392,7 +1403,7 @@ int UtcDaliActorIsVisibleP(void)
 
 /**
  * @testcase           UtcDaliActorSetXYZP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetXYZ api works or not.
  */
 
@@ -1410,7 +1421,7 @@ int UtcDaliActorSetXYZP(void)
 
 /**
  * @testcase           UtcDaliActorOnStageP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if OnStage api works or not.
  */
 
@@ -1428,7 +1439,7 @@ int UtcDaliActorOnStageP(void)
 
 /**
  * @testcase           UtcDaliActorGetLayerP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetLayer api works or not.
  */
 
@@ -1446,7 +1457,7 @@ int UtcDaliActorGetLayerP(void)
 
 /**
  * @testcase           UtcDaliActorIsLayerP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if IsLayer api works or not.
  */
 
@@ -1464,7 +1475,7 @@ int UtcDaliActorIsLayerP(void)
 
 /**
  * @testcase           UtcDaliActorIsRootP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if IsRoot api works or not.
  */
 
@@ -1482,7 +1493,7 @@ int UtcDaliActorIsRootP(void)
 
 /**
  * @testcase           UtcDaliActorOnStageSignalP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if OnStageSignal api works or not.
  */
 
@@ -1500,7 +1511,7 @@ int UtcDaliActorOnStageSignalP(void)
 
 /**
  * @testcase           UtcDaliActorOffStageSignalP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if OffStageSignal api works or not.
  */
 
@@ -1518,7 +1529,7 @@ int UtcDaliActorOffStageSignalP(void)
 
 /**
  * @testcase           UtcDaliActorSetAnchorPointP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetAnchorPoint api works or not.
  */
 
@@ -1536,7 +1547,7 @@ int UtcDaliActorSetAnchorPointP(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentAnchorPointP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentAnchorPoint api works or not.
  */
 
@@ -1554,7 +1565,7 @@ int UtcDaliActorGetCurrentAnchorPointP(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentWorldColorP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentWorldColor api works or not.
  */
 
@@ -1572,7 +1583,7 @@ int UtcDaliActorGetCurrentWorldColorP(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentColorP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentColor api works or not.
  */
 
@@ -1590,7 +1601,7 @@ int UtcDaliActorGetCurrentColorP(void)
 
 /**
  * @testcase           UtcDaliActorSetColorP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetColor api works or not.
  */
 
@@ -1608,7 +1619,7 @@ int UtcDaliActorSetColorP(void)
 
 /**
  * @testcase           UtcDaliActorSetColorModeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetColorMode api works or not.
  */
 
@@ -1626,7 +1637,7 @@ int UtcDaliActorSetColorModeP(void)
 
 /**
  * @testcase           UtcDaliActorGetColorModeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetColorMode api works or not.
  */
 
@@ -1644,7 +1655,7 @@ int UtcDaliActorGetColorModeP(void)
 
 /**
  * @testcase           UtcDaliActorSetOpacityP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetOpacity api works or not.
  */
 
@@ -1662,7 +1673,7 @@ int UtcDaliActorSetOpacityP(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentOpacityP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentOpacity api works or not.
  */
 
@@ -1680,7 +1691,7 @@ int UtcDaliActorGetCurrentOpacityP(void)
 
 /**
  * @testcase           UtcDaliActorSetParentOriginP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetParentOrigin api works or not.
  */
 
@@ -1698,7 +1709,7 @@ int UtcDaliActorSetParentOriginP(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentParentOriginP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentParentOrigin api works or not.
  */
 
@@ -1716,7 +1727,7 @@ int UtcDaliActorGetCurrentParentOriginP(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentWorldPositionP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentWorldPosition api works or not.
  */
 
@@ -1734,7 +1745,7 @@ int UtcDaliActorGetCurrentWorldPositionP(void)
 
 /**
  * @testcase           UtcDaliActorSetPositionInheritanceModeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetPositionInheritanceMode api works or not.
  */
 
@@ -1752,7 +1763,7 @@ int UtcDaliActorSetPositionInheritanceModeP(void)
 
 /**
  * @testcase           UtcDaliActorGetPositionInheritanceModeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetPositionInheritanceMode api works or not.
  */
 
@@ -1770,7 +1781,7 @@ int UtcDaliActorGetPositionInheritanceModeP(void)
 
 /**
  * @testcase           UtcDaliActorSetPositionP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetPosition api works or not.
  */
 
@@ -1788,7 +1799,7 @@ int UtcDaliActorSetPositionP(void)
 
 /**
  * @testcase           UtcDaliActorSetPositionP2
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetPosition api works or not.
  */
 
@@ -1806,7 +1817,7 @@ int UtcDaliActorSetPositionP2(void)
 
 /**
  * @testcase           UtcDaliActorSetPositionP3
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetPosition api works or not.
  */
 
@@ -1824,7 +1835,7 @@ int UtcDaliActorSetPositionP3(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentPositionP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentPosition api works or not.
  */
 
@@ -1842,7 +1853,7 @@ int UtcDaliActorGetCurrentPositionP(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentPositionP2
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentPosition api works or not.
  */
 
@@ -1860,7 +1871,7 @@ int UtcDaliActorGetCurrentPositionP2(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentPositionP3
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentPosition api works or not.
  */
 
@@ -1878,7 +1889,7 @@ int UtcDaliActorGetCurrentPositionP3(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentWorldOrientationP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentWorldOrientation api works or not.
  */
 
@@ -1896,7 +1907,7 @@ int UtcDaliActorGetCurrentWorldOrientationP(void)
 
 /**
  * @testcase           UtcDaliActorIsOrientationInheritedP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if IsOrientationInherited api works or not.
  */
 
@@ -1914,7 +1925,7 @@ int UtcDaliActorIsOrientationInheritedP(void)
 
 /**
  * @testcase           UtcDaliActorSetOrientationP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetOrientation api works or not.
  */
 
@@ -1932,7 +1943,7 @@ int UtcDaliActorSetOrientationP(void)
 
 /**
  * @testcase           UtcDaliActorSetOrientationP2
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetOrientation api works or not.
  */
 
@@ -1950,7 +1961,7 @@ int UtcDaliActorSetOrientationP2(void)
 
 /**
  * @testcase           UtcDaliActorSetOrientationP3
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetOrientation api works or not.
  */
 
@@ -1968,7 +1979,7 @@ int UtcDaliActorSetOrientationP3(void)
 
 /**
  * @testcase           UtcDaliActorSetInheritOrientationP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetInheritOrientation api works or not.
  */
 
@@ -1986,7 +1997,7 @@ int UtcDaliActorSetInheritOrientationP(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentOrientationP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentOrientation api works or not.
  */
 
@@ -2004,7 +2015,7 @@ int UtcDaliActorGetCurrentOrientationP(void)
 
 /**
  * @testcase           UtcDaliActorSetInheritScaleP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetInheritScale api works or not.
  */
 
@@ -2022,7 +2033,7 @@ int UtcDaliActorSetInheritScaleP(void)
 
 /**
  * @testcase           UtcDaliActorIsScaleInheritedP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if IsScaleInherited api works or not.
  */
 
@@ -2040,7 +2051,7 @@ int UtcDaliActorIsScaleInheritedP(void)
 
 /**
  * @testcase           UtcDaliActorSetScaleP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetScale api works or not.
  */
 
@@ -2058,7 +2069,7 @@ int UtcDaliActorSetScaleP(void)
 
 /**
  * @testcase           UtcDaliActorSetScaleP2
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetScale api works or not.
  */
 
@@ -2076,7 +2087,7 @@ int UtcDaliActorSetScaleP2(void)
 
 /**
  * @testcase           UtcDaliActorSetScaleP3
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetScale api works or not.
  */
 
@@ -2094,7 +2105,7 @@ int UtcDaliActorSetScaleP3(void)
 
 /**
  * @testcase           UtcDaliActorScaleByP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if ScaleBy api works or not.
  */
 
@@ -2112,7 +2123,7 @@ int UtcDaliActorScaleByP(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentWorldScaleP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentWorldScale api works or not.
  */
 
@@ -2130,7 +2141,7 @@ int UtcDaliActorGetCurrentWorldScaleP(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentWorldMatrixP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentWorldMatrix api works or not.
  */
 
@@ -2148,7 +2159,7 @@ int UtcDaliActorGetCurrentWorldMatrixP(void)
 
 /**
  * @testcase           UtcDaliActorSetSensitiveP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetSensitive api works or not.
  */
 
@@ -2166,7 +2177,7 @@ int UtcDaliActorSetSensitiveP(void)
 
 /**
  * @testcase           UtcDaliActorIsSensitiveP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if IsSensitive api works or not.
  */
 
@@ -2184,7 +2195,7 @@ int UtcDaliActorIsSensitiveP(void)
 
 /**
  * @testcase           UtcDaliActorSetSizeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetSize api works or not.
  */
 
@@ -2202,7 +2213,7 @@ int UtcDaliActorSetSizeP(void)
 
 /**
  * @testcase           UtcDaliActorSetSizeP2
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetSize api works or not.
  */
 
@@ -2220,7 +2231,7 @@ int UtcDaliActorSetSizeP2(void)
 
 /**
  * @testcase           UtcDaliActorSetSizeP3
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetSize api works or not.
  */
 
@@ -2238,7 +2249,7 @@ int UtcDaliActorSetSizeP3(void)
 
 /**
  * @testcase           UtcDaliActorSetSizeP4
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetSize api works or not.
  */
 
@@ -2256,7 +2267,7 @@ int UtcDaliActorSetSizeP4(void)
 
 /**
  * @testcase           UtcDaliActorGetCurrentSizeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetCurrentSize api works or not.
  */
 
@@ -2274,7 +2285,7 @@ int UtcDaliActorGetCurrentSizeP(void)
 
 /**
  * @testcase           UtcDaliActorSetPaddingP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetPadding api works or not.
  */
 
@@ -2292,7 +2303,7 @@ int UtcDaliActorSetPaddingP(void)
 
 /**
  * @testcase           UtcDaliActorGetPaddingP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetPadding api works or not.
  */
 
@@ -2310,7 +2321,7 @@ int UtcDaliActorGetPaddingP(void)
 
 /**
  * @testcase           UtcDaliActorTranslateByP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if TranslateBy api works or not.
  */
 
@@ -2328,7 +2339,7 @@ int UtcDaliActorTranslateByP(void)
 
 /**
  * @testcase           UtcDaliActorSetMaximumSizeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetMaximumSize api works or not.
  */
 
@@ -2346,7 +2357,7 @@ int UtcDaliActorSetMaximumSizeP(void)
 
 /**
  * @testcase           UtcDaliActorGetMaximumSizeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetMaximumSize api works or not.
  */
 
@@ -2364,7 +2375,7 @@ int UtcDaliActorGetMaximumSizeP(void)
 
 /**
  * @testcase           UtcDaliActorGetMinimumSizeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetMinimumSize api works or not.
  */
 
@@ -2382,7 +2393,7 @@ int UtcDaliActorGetMinimumSizeP(void)
 
 /**
  * @testcase           UtcDaliActorSetMinimumSizeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetMinimumSize api works or not.
  */
 
@@ -2400,7 +2411,7 @@ int UtcDaliActorSetMinimumSizeP(void)
 
 /**
  * @testcase           UtcDaliActorOnRelayoutSignalP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if OnRelayoutSignal api works or not.
  */
 
@@ -2418,7 +2429,7 @@ int UtcDaliActorOnRelayoutSignalP(void)
 
 /**
  * @testcase           UtcDaliActorSetResizePolicyP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetResizePolicy api works or not.
  */
 
@@ -2436,7 +2447,7 @@ int UtcDaliActorSetResizePolicyP(void)
 
 /**
  * @testcase           UtcDaliActorGetHeightForWidthP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetHeightForWidth api works or not.
  */
 
@@ -2454,7 +2465,7 @@ int UtcDaliActorGetHeightForWidthP(void)
 
 /**
  * @testcase           UtcDaliActorGetWidthForHeightP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetWidthForHeight api works or not.
  */
 
@@ -2472,7 +2483,7 @@ int UtcDaliActorGetWidthForHeightP(void)
 
 /**
  * @testcase           UtcDaliActorSetSizeModeFactorP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetSizeModeFactor api works or not.
  */
 
@@ -2490,7 +2501,7 @@ int UtcDaliActorSetSizeModeFactorP(void)
 
 /**
  * @testcase           UtcDaliActorGetSizeModeFactorP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetSizeModeFactor api works or not.
  */
 
@@ -2508,7 +2519,7 @@ int UtcDaliActorGetSizeModeFactorP(void)
 
 /**
  * @testcase           UtcDaliActorSetSizeScalePolicyP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetSizeScalePolicy api works or not.
  */
 
@@ -2526,7 +2537,7 @@ int UtcDaliActorSetSizeScalePolicyP(void)
 
 /**
  * @testcase           UtcDaliActorGetSizeScalePolicyP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetSizeScalePolicy api works or not.
  */
 
@@ -2544,7 +2555,7 @@ int UtcDaliActorGetSizeScalePolicyP(void)
 
 /**
  * @testcase           UtcDaliActorRotateByP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if RotateBy api works or not.
  */
 
@@ -2562,7 +2573,7 @@ int UtcDaliActorRotateByP(void)
 
 /**
  * @testcase           UtcDaliActorRotateByP2
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if RotateBy api works or not.
  */
 
@@ -2580,7 +2591,7 @@ int UtcDaliActorRotateByP2(void)
 
 /**
  * @testcase           UtcDaliActorGetNaturalSizeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetNaturalSize api works or not.
  */
 
@@ -2598,7 +2609,7 @@ int UtcDaliActorGetNaturalSizeP(void)
 
 /**
  * @testcase           UtcDaliActorResizePolicyP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if ResizePolicy api works or not.
  */
 
@@ -2616,7 +2627,7 @@ int UtcDaliActorResizePolicyP(void)
 
 /**
  * @testcase           UtcDaliActorOperatorAssignmentP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if OperatorAssignment api works or not.
  */
 
@@ -2634,7 +2645,7 @@ int UtcDaliActorOperatorAssignmentP(void)
 
 /**
  * @testcase           UtcDaliActorGetRelayoutSizeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetRelayoutSize api works or not.
  */
 
@@ -2652,7 +2663,7 @@ int UtcDaliActorGetRelayoutSizeP(void)
 
 /**
  * @testcase           UtcDaliActorConstructorP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if Constructor api works or not.
  */
 
@@ -2670,7 +2681,7 @@ int UtcDaliActorConstructorP(void)
 
 /**
  * @testcase           UtcDaliActorCopyConstructorP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if CopyConstructor api works or not.
  */
 
@@ -2688,7 +2699,7 @@ int UtcDaliActorCopyConstructorP(void)
 
 /**
  * @testcase           UtcDaliActorGetHierarchyDepthP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetHierarchyDepth api works or not.
  */
 
@@ -2706,7 +2717,7 @@ int UtcDaliActorGetHierarchyDepthP(void)
 
 /**
  * @testcase           UtcDaliActorSetLeaveRequiredP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetLeaveRequired api works or not.
  */
 
@@ -2724,7 +2735,7 @@ int UtcDaliActorSetLeaveRequiredP(void)
 
 /**
  * @testcase           UtcDaliActorSetLeaveRequiredP2
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if SetLeaveRequired api works or not.
  */
 
@@ -2742,7 +2753,7 @@ int UtcDaliActorSetLeaveRequiredP2(void)
 
 /**
  * @testcase           UtcDaliActorGetLeaveRequiredP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetLeaveRequired api works or not.
  */
 
@@ -2760,7 +2771,7 @@ int UtcDaliActorGetLeaveRequiredP(void)
 
 /**
  * @testcase           UtcDaliActorGetLeaveRequiredP2
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetLeaveRequired api works or not.
  */
 
@@ -2778,7 +2789,7 @@ int UtcDaliActorGetLeaveRequiredP2(void)
 
 /**
  * @testcase           UtcDaliActorGetTargetSizeP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if GetTargetSize api works or not.
  */
 
@@ -2796,7 +2807,7 @@ int UtcDaliActorGetTargetSizeP(void)
 
 /**
  * @testcase           UtcDaliActorScreenToLocalP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if ScreenToLocal api works or not.
  */
 
@@ -2814,7 +2825,7 @@ int UtcDaliActorScreenToLocalP(void)
 
 /**
  * @testcase           UtcDaliActorRemoveP
- * @since_tizen         2.4
+ * @since_tizen        2.4
  * @description        check if Remove api works or not.
  */
 
@@ -2830,3 +2841,38 @@ int UtcDaliActorRemoveP(void)
   return test_return_value;
 }
 
+/**
+ * @testcase           UtcDaliActorSetInheritPositionP
+ * @since_tizen        2.4
+ * @description        check if SetInheritPosition api works or not.
+ */
+
+int UtcDaliActorSetInheritPositionP(void)
+{
+  DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ );
+
+  Application application = Application::New( &gArgc, &gArgv);
+  CHECK_GL;
+  Actor_TestApp testApp(application, ACTOR_SET_INHERIT_POSITION_P );
+  application.MainLoop();
+
+  return test_return_value;
+}
+
+/**
+ * @testcase           UtcDaliActorIsPositionInheritedP
+ * @since_tizen        2.4
+ * @description        check if IsPositionInherited api works or not.
+ */
+
+int UtcDaliActorIsPositionInheritedP(void)
+{
+  DaliLog::PrintExecStarted( SUITE_NAME, __FUNCTION__ );
+
+  Application application = Application::New( &gArgc, &gArgv);
+  CHECK_GL;
+  Actor_TestApp testApp(application, ACTOR_IS_POSITION_INHERITED_P );
+  application.MainLoop();
+
+  return test_return_value;
+}
index dc0d0e7..3e41842 100755 (executable)
@@ -946,6 +946,8 @@ extern int UtcDaliActorGetTargetSizeP(void);
 extern int UtcDaliActorScreenToLocalP(void);
 extern int UtcDaliActorRemoveP(void);
 extern int UtcDaliActorUnparentAndResetP(void);
+extern int UtcDaliActorSetInheritPositionP(void);
+extern int UtcDaliActorIsPositionInheritedP(void);
 
 //base-object
 extern int UtcDaliBaseObjectGetTypeNameInfoForActorP(void);
@@ -2024,6 +2026,8 @@ testcase tc_array[] = {
   {"UtcDaliActorScreenToLocalP", UtcDaliActorScreenToLocalP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliActorRemoveP", UtcDaliActorRemoveP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliActorUnparentAndResetP", UtcDaliActorUnparentAndResetP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
+  {"UtcDaliActorSetInheritPositionP", UtcDaliActorSetInheritPositionP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
+  {"UtcDaliActorIsPositionInheritedP", UtcDaliActorIsPositionInheritedP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliBaseObjectGetTypeNameInfoForActorP", UtcDaliBaseObjectGetTypeNameInfoForActorP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},
   {"UtcDaliBaseObjectGetTypeNameInfoForAnimationP", UtcDaliBaseObjectGetTypeNameInfoForAnimationP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},
   {"UtcDaliBaseObjectGetTypeNameInfoForLongPressGestureDetectorP", UtcDaliBaseObjectGetTypeNameInfoForLongPressGestureDetectorP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},
index dc0d0e7..3e41842 100755 (executable)
@@ -946,6 +946,8 @@ extern int UtcDaliActorGetTargetSizeP(void);
 extern int UtcDaliActorScreenToLocalP(void);
 extern int UtcDaliActorRemoveP(void);
 extern int UtcDaliActorUnparentAndResetP(void);
+extern int UtcDaliActorSetInheritPositionP(void);
+extern int UtcDaliActorIsPositionInheritedP(void);
 
 //base-object
 extern int UtcDaliBaseObjectGetTypeNameInfoForActorP(void);
@@ -2024,6 +2026,8 @@ testcase tc_array[] = {
   {"UtcDaliActorScreenToLocalP", UtcDaliActorScreenToLocalP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliActorRemoveP", UtcDaliActorRemoveP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliActorUnparentAndResetP", UtcDaliActorUnparentAndResetP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
+  {"UtcDaliActorSetInheritPositionP", UtcDaliActorSetInheritPositionP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
+  {"UtcDaliActorIsPositionInheritedP", UtcDaliActorIsPositionInheritedP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliBaseObjectGetTypeNameInfoForActorP", UtcDaliBaseObjectGetTypeNameInfoForActorP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},
   {"UtcDaliBaseObjectGetTypeNameInfoForAnimationP", UtcDaliBaseObjectGetTypeNameInfoForAnimationP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},
   {"UtcDaliBaseObjectGetTypeNameInfoForLongPressGestureDetectorP", UtcDaliBaseObjectGetTypeNameInfoForLongPressGestureDetectorP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},
index dc0d0e7..3e41842 100755 (executable)
@@ -946,6 +946,8 @@ extern int UtcDaliActorGetTargetSizeP(void);
 extern int UtcDaliActorScreenToLocalP(void);
 extern int UtcDaliActorRemoveP(void);
 extern int UtcDaliActorUnparentAndResetP(void);
+extern int UtcDaliActorSetInheritPositionP(void);
+extern int UtcDaliActorIsPositionInheritedP(void);
 
 //base-object
 extern int UtcDaliBaseObjectGetTypeNameInfoForActorP(void);
@@ -2024,6 +2026,8 @@ testcase tc_array[] = {
   {"UtcDaliActorScreenToLocalP", UtcDaliActorScreenToLocalP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliActorRemoveP", UtcDaliActorRemoveP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliActorUnparentAndResetP", UtcDaliActorUnparentAndResetP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
+  {"UtcDaliActorSetInheritPositionP", UtcDaliActorSetInheritPositionP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
+  {"UtcDaliActorIsPositionInheritedP", UtcDaliActorIsPositionInheritedP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliBaseObjectGetTypeNameInfoForActorP", UtcDaliBaseObjectGetTypeNameInfoForActorP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},
   {"UtcDaliBaseObjectGetTypeNameInfoForAnimationP", UtcDaliBaseObjectGetTypeNameInfoForAnimationP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},
   {"UtcDaliBaseObjectGetTypeNameInfoForLongPressGestureDetectorP", UtcDaliBaseObjectGetTypeNameInfoForLongPressGestureDetectorP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},
index dc0d0e7..3e41842 100755 (executable)
@@ -946,6 +946,8 @@ extern int UtcDaliActorGetTargetSizeP(void);
 extern int UtcDaliActorScreenToLocalP(void);
 extern int UtcDaliActorRemoveP(void);
 extern int UtcDaliActorUnparentAndResetP(void);
+extern int UtcDaliActorSetInheritPositionP(void);
+extern int UtcDaliActorIsPositionInheritedP(void);
 
 //base-object
 extern int UtcDaliBaseObjectGetTypeNameInfoForActorP(void);
@@ -2024,6 +2026,8 @@ testcase tc_array[] = {
   {"UtcDaliActorScreenToLocalP", UtcDaliActorScreenToLocalP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliActorRemoveP", UtcDaliActorRemoveP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliActorUnparentAndResetP", UtcDaliActorUnparentAndResetP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
+  {"UtcDaliActorSetInheritPositionP", UtcDaliActorSetInheritPositionP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
+  {"UtcDaliActorIsPositionInheritedP", UtcDaliActorIsPositionInheritedP, utc_Dali_Actor_startup, utc_Dali_Actor_cleanup },
   {"UtcDaliBaseObjectGetTypeNameInfoForActorP", UtcDaliBaseObjectGetTypeNameInfoForActorP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},
   {"UtcDaliBaseObjectGetTypeNameInfoForAnimationP", UtcDaliBaseObjectGetTypeNameInfoForAnimationP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},
   {"UtcDaliBaseObjectGetTypeNameInfoForLongPressGestureDetectorP", UtcDaliBaseObjectGetTypeNameInfoForLongPressGestureDetectorP, utc_Dali_BaseObject_startup, utc_Dali_BaseObject_cleanup},