{
AddToCallStacks("OnKeyInputFocusLost");
}
- virtual Actor GetChildByAlias(const std::string& actorAlias)
- {
- AddToCallStacks("GetChildByAlias");
-
- if ("found" == actorAlias)
- {
- return Actor::New();
- }
- else
- {
- return Actor();
- }
- }
-
virtual Vector3 GetNaturalSize()
{
return Vector3( 0.0f, 0.0f, 0.0f );
{
}
- virtual Actor GetChildByAlias(const std::string& actorAlias)
- {
- return Actor();
- }
-
virtual Vector3 GetNaturalSize()
{
return Vector3( 0.0f, 0.0f, 0.0f );
END_TEST;
}
-int UtcDaliCustomActorFindChildByAlias(void)
-{
- TestApplication application;
- tet_infoline("Testing Dali::CustomActor::GetChildByAlias()");
-
- TestCustomActor custom = TestCustomActor::New();
- DALI_TEST_EQUALS( 0, (int)(custom.GetMethodsCalled().size()), TEST_LOCATION );
-
- custom.Add(Actor::New());
-
- DALI_TEST_EQUALS( 1, (int)(custom.GetMethodsCalled().size()), TEST_LOCATION );
-
- DALI_TEST_CHECK( !custom.FindChildByAlias("not-found") );
-
- DALI_TEST_EQUALS( 2, (int)(custom.GetMethodsCalled().size()), TEST_LOCATION );
- DALI_TEST_EQUALS( "GetChildByAlias", custom.GetMethodsCalled()[ 1 ], TEST_LOCATION );
-
- DALI_TEST_CHECK( custom.FindChildByAlias("found") );
- END_TEST;
-}
-
int UtcDaliCustomActorImplOnPropertySet(void)
{
TestApplication application;