END_TEST;
}
-int UtcDaliAnimationSetDuratioN(void)
+int UtcDaliAnimationSetDurationP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationGetDuratioN(void)
+int UtcDaliAnimationGetDurationP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationGetEndActioN(void)
+int UtcDaliAnimationGetEndActionP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationSetDisconnectActioN(void)
+int UtcDaliAnimationSetDisconnectActionP(void)
{
TestApplication application;
Stage stage( Stage::GetCurrent() );
END_TEST;
}
-int UtcDaliAnimationGetDisconnectActioN(void)
+int UtcDaliAnimationGetDisconnectActionP(void)
{
TestApplication application;
Animation animation = Animation::New(1.0f);
END_TEST;
}
-int UtcDaliAnimationSetDefaultAlphaFunctioN(void)
+int UtcDaliAnimationSetDefaultAlphaFunctionP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationGetDefaultAlphaFunctioN(void)
+int UtcDaliAnimationGetDefaultAlphaFunctionP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationStopSetPositioN(void)
+int UtcDaliAnimationStopSetPositionP(void)
{
// Test that Animation::Stop & Actor::SetPosition can be used in conjunction
// i.e. to check that the animation does not interfere with the position set.
END_TEST;
}
-int UtcDaliAnimationAnimateByBooleaN(void)
+int UtcDaliAnimationAnimateByBooleanP(void)
{
TestApplication application;
// Register a boolean property
bool startValue(false);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_CHECK( actor.GetProperty<bool>(index) == startValue );
END_TEST;
}
-int UtcDaliAnimationAnimateByBooleanAlphaFunctioN(void)
+int UtcDaliAnimationAnimateByBooleanAlphaFunctionP(void)
{
TestApplication application;
// Register a boolean property
bool startValue(false);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_CHECK( actor.GetProperty<bool>(index) == startValue );
// Register a boolean property
bool startValue(false);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_CHECK( actor.GetProperty<bool>(index) == startValue );
// Register a boolean property
bool startValue(false);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_CHECK( actor.GetProperty<bool>(index) == startValue );
// Register a float property
float startValue(10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<float>(index), startValue, TEST_LOCATION );
END_TEST;
}
-int UtcDaliAnimationAnimateByFloatAlphaFunctioN(void)
+int UtcDaliAnimationAnimateByFloatAlphaFunctionP(void)
{
TestApplication application;
// Register a float property
float startValue(10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<float>(index), startValue, TEST_LOCATION );
// Register a float property
float startValue(10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<float>(index), startValue, TEST_LOCATION );
// Register a float property
float startValue(10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<float>(index), startValue, TEST_LOCATION );
// Register an integer property
int startValue(1);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<int>(index), startValue, TEST_LOCATION );
END_TEST;
}
-int UtcDaliAnimationAnimateByIntegerAlphaFunctioN(void)
+int UtcDaliAnimationAnimateByIntegerAlphaFunctionP(void)
{
TestApplication application;
// Register an integer property
int startValue(1);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<int>(index), startValue, TEST_LOCATION );
// Register an integer property
int startValue(10);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<int>(index), startValue, TEST_LOCATION );
// Register an integer property
int startValue(10);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<int>(index), startValue, TEST_LOCATION );
// Register a Vector2 property
Vector2 startValue(10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector2>(index), startValue, TEST_LOCATION );
END_TEST;
}
-int UtcDaliAnimationAnimateByVector2AlphaFunctioN(void)
+int UtcDaliAnimationAnimateByVector2AlphaFunctionP(void)
{
TestApplication application;
// Register a Vector2 property
Vector2 startValue(100.0f, 100.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector2>(index), startValue, TEST_LOCATION );
// Register a Vector2 property
Vector2 startValue(10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector2>(index), startValue, TEST_LOCATION );
// Register a Vector2 property
Vector2 startValue(5.0f, 5.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector2>(index), startValue, TEST_LOCATION );
// Register a Vector3 property
Vector3 startValue(10.0f, 10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector3>(index), startValue, TEST_LOCATION );
END_TEST;
}
-int UtcDaliAnimationAnimateByVector3AlphaFunctioN(void)
+int UtcDaliAnimationAnimateByVector3AlphaFunctionP(void)
{
TestApplication application;
// Register a Vector3 property
Vector3 startValue(100.0f, 100.0f, 100.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector3>(index), startValue, TEST_LOCATION );
// Register a Vector3 property
Vector3 startValue(10.0f, 10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector3>(index), startValue, TEST_LOCATION );
// Register a Vector3 property
Vector3 startValue(5.0f, 5.0f, 5.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector3>(index), startValue, TEST_LOCATION );
// Register a Vector4 property
Vector4 startValue(10.0f, 10.0f, 10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector4>(index), startValue, TEST_LOCATION );
END_TEST;
}
-int UtcDaliAnimationAnimateByVector4AlphaFunctioN(void)
+int UtcDaliAnimationAnimateByVector4AlphaFunctionP(void)
{
TestApplication application;
// Register a Vector4 property
Vector4 startValue(100.0f, 100.0f, 100.0f, 100.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector4>(index), startValue, TEST_LOCATION );
// Register a Vector4 property
Vector4 startValue(10.0f, 10.0f, 10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector4>(index), startValue, TEST_LOCATION );
// Register a Vector4 property
Vector4 startValue(5.0f, 5.0f, 5.0f, 5.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector4>(index), startValue, TEST_LOCATION );
END_TEST;
}
-int UtcDaliAnimationAnimateByActorPositioN(void)
+int UtcDaliAnimationAnimateByActorPositionP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationAnimateByActorPositionAlphaFunctioN(void)
+int UtcDaliAnimationAnimateByActorPositionAlphaFunctionP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationAnimateByActorOrientatioN(void)
+int UtcDaliAnimationAnimateByActorOrientationP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationAnimateByActorOrientationAlphaFunctioN(void)
+int UtcDaliAnimationAnimateByActorOrientationAlphaFunctionP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationAnimateToBooleaN(void)
+int UtcDaliAnimationAnimateToBooleanP(void)
{
TestApplication application;
// Register a boolean property
const bool startValue(false);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_CHECK( actor.GetProperty<bool>(index) == startValue );
END_TEST;
}
-int UtcDaliAnimationAnimateToBooleanAlphaFunctioN(void)
+int UtcDaliAnimationAnimateToBooleanAlphaFunctionP(void)
{
TestApplication application;
// Register a boolean property
const bool startValue(false);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_CHECK( actor.GetProperty<bool>(index) == startValue );
float durationSeconds(2.0f);
Animation animation = Animation::New(durationSeconds);
const bool targetValue( !startValue );
- animation.AnimateTo(Property(actor, "test-property"), targetValue, AlphaFunction::EASE_OUT);
+ animation.AnimateTo(Property(actor, "testProperty"), targetValue, AlphaFunction::EASE_OUT);
// Start the animation
animation.Play();
// Register a boolean property
bool startValue(false);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_CHECK( actor.GetProperty<bool>(index) == startValue );
// Register a boolean property
bool startValue(false);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_CHECK( actor.GetProperty<bool>(index) == startValue );
// Register a float property
float startValue(10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<float>(index), startValue, TEST_LOCATION );
Animation animation = Animation::New(durationSeconds);
float targetValue(50.0f);
float relativeValue(targetValue - startValue);
- animation.AnimateTo(Property(actor, "test-property"), targetValue);
+ animation.AnimateTo(Property(actor, "testProperty"), targetValue);
float ninetyFivePercentProgress(startValue + relativeValue*0.95f);
END_TEST;
}
-int UtcDaliAnimationAnimateToFloatAlphaFunctioN(void)
+int UtcDaliAnimationAnimateToFloatAlphaFunctionP(void)
{
TestApplication application;
// Register a float property
float startValue(10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<float>(index), startValue, TEST_LOCATION );
// Register a float property
float startValue(10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<float>(index), startValue, TEST_LOCATION );
// Register a float property
float startValue(10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<float>(index), startValue, TEST_LOCATION );
// Register an integer property
int startValue(10);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<int>(index), startValue, TEST_LOCATION );
Animation animation = Animation::New(durationSeconds);
int targetValue(50);
int relativeValue(targetValue - startValue);
- animation.AnimateTo(Property(actor, "test-property"), targetValue);
+ animation.AnimateTo(Property(actor, "testProperty"), targetValue);
int ninetyFivePercentProgress(static_cast<int>(startValue + relativeValue*0.95f + 0.5f));
END_TEST;
}
-int UtcDaliAnimationAnimateToIntegerAlphaFunctioN(void)
+int UtcDaliAnimationAnimateToIntegerAlphaFunctionP(void)
{
TestApplication application;
// Register an integer property
int startValue(10);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<int>(index), startValue, TEST_LOCATION );
// Register an integer property
int startValue(10);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<int>(index), startValue, TEST_LOCATION );
// Register an integer property
int startValue(10);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<int>(index), startValue, TEST_LOCATION );
// Register a Vector2 property
Vector2 startValue(-50.0f, -50.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector2>(index), startValue, TEST_LOCATION );
END_TEST;
}
-int UtcDaliAnimationAnimateToVector2AlphaFunctioN(void)
+int UtcDaliAnimationAnimateToVector2AlphaFunctionP(void)
{
TestApplication application;
// Register a Vector2 property
Vector2 startValue(1000.0f, 1000.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector2>(index), startValue, TEST_LOCATION );
Animation animation = Animation::New(durationSeconds);
Vector2 targetValue(9000.0f, 9000.0f);
Vector2 relativeValue(targetValue - startValue);
- animation.AnimateTo(Property(actor, "test-property"), targetValue, AlphaFunction::EASE_OUT);
+ animation.AnimateTo(Property(actor, "testProperty"), targetValue, AlphaFunction::EASE_OUT);
Vector2 ninetyFivePercentProgress(startValue + relativeValue*0.95f);
// Register a Vector2 property
Vector2 startValue(10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector2>(index), startValue, TEST_LOCATION );
// Register a Vector2 property
Vector2 startValue(10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector2>(index), startValue, TEST_LOCATION );
// Register a Vector3 property
Vector3 startValue(-50.0f, -50.0f, -50.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector3>(index), startValue, TEST_LOCATION );
END_TEST;
}
-int UtcDaliAnimationAnimateToVector3AlphaFunctioN(void)
+int UtcDaliAnimationAnimateToVector3AlphaFunctionP(void)
{
TestApplication application;
// Register a Vector3 property
Vector3 startValue(1000.0f, 1000.0f, 1000.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector3>(index), startValue, TEST_LOCATION );
// Register a Vector3 property
Vector3 startValue(10.0f, 10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector3>(index), startValue, TEST_LOCATION );
// Register a Vector3 property
Vector3 startValue(10.0f, 10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector3>(index), startValue, TEST_LOCATION );
Vector3 targetValue(30.0f, 30.0f, 30.0f);
Vector3 relativeValue(targetValue - startValue);
float delay = 0.5f;
- animation.AnimateTo(Property(actor, "test-property"),
+ animation.AnimateTo(Property(actor, "testProperty"),
targetValue,
AlphaFunction::LINEAR,
TimePeriod(delay, durationSeconds - delay));
// Register a Vector3 property
Vector3 startValue(10.0f, 10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector3>(index), startValue, TEST_LOCATION );
Vector3 targetValue(30.0f, 30.0f, 10.0f);
Vector3 relativeValue(targetValue - startValue);
float delay = 0.5f;
- animation.AnimateTo(Property(actor, "test-property", 0),
+ animation.AnimateTo(Property(actor, "testProperty", 0),
30.0f,
AlphaFunction::LINEAR,
TimePeriod(delay, durationSeconds - delay));
// Register a Vector4 property
Vector4 startValue(-50.0f, -40.0f, -30.0f, -20.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector4>(index), startValue, TEST_LOCATION );
END_TEST;
}
-int UtcDaliAnimationAnimateToVector4AlphaFunctioN(void)
+int UtcDaliAnimationAnimateToVector4AlphaFunctionP(void)
{
TestApplication application;
// Register a Vector4 property
Vector4 startValue(1000.0f, 1000.0f, 1000.0f, 1000.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector4>(index), startValue, TEST_LOCATION );
// Register a Vector4 property
Vector4 startValue(10.0f, 10.0f, 10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector4>(index), startValue, VECTOR4_EPSILON, TEST_LOCATION );
// Register a Vector4 property
Vector4 startValue(10.0f, 10.0f, 10.0f, 10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<Vector4>(index), startValue, TEST_LOCATION );
END_TEST;
}
-int UtcDaliAnimationAnimateToActorParentOrigiN(void)
+int UtcDaliAnimationAnimateToActorParentOriginP(void)
{
TestApplication application;
application.SendNotification();
finishCheck.CheckSignalNotReceived();
DALI_TEST_EQUALS( actor.GetCurrentSize().width, fiftyPercentProgress, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::SIZE_WIDTH), fiftyPercentProgress, TEST_LOCATION );
application.SendNotification();
application.Render(static_cast<unsigned int>(durationSeconds*500.0f) + 1u/*just beyond the animation duration*/);
application.SendNotification();
finishCheck.CheckSignalNotReceived();
DALI_TEST_EQUALS( actor.GetCurrentSize().height, fiftyPercentProgress, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::SIZE_HEIGHT), fiftyPercentProgress, TEST_LOCATION );
application.SendNotification();
application.Render(static_cast<unsigned int>(durationSeconds*500.0f) + 1u/*just beyond the animation duration*/);
application.SendNotification();
finishCheck.CheckSignalNotReceived();
DALI_TEST_EQUALS( actor.GetCurrentSize().depth, fiftyPercentProgress, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::SIZE_DEPTH), fiftyPercentProgress, TEST_LOCATION );
application.SendNotification();
application.Render(static_cast<unsigned int>(durationSeconds*500.0f) + 1u/*just beyond the animation duration*/);
END_TEST;
}
-int UtcDaliAnimationAnimateToActorPositioN(void)
+int UtcDaliAnimationAnimateToActorPositionP(void)
{
TestApplication application;
application.SendNotification();
finishCheck.CheckSignalNotReceived();
DALI_TEST_EQUALS( actor.GetCurrentPosition().x, fiftyPercentProgress, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::POSITION_X), fiftyPercentProgress, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::POSITION_Y), startValue, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::POSITION_Z), startValue, TEST_LOCATION );
application.SendNotification();
application.Render(static_cast<unsigned int>(durationSeconds*500.0f) + 1u/*just beyond the animation duration*/);
application.SendNotification();
finishCheck.CheckSignalNotReceived();
DALI_TEST_EQUALS( actor.GetCurrentPosition().y, fiftyPercentProgress, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::POSITION_X), startValue, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::POSITION_Y), fiftyPercentProgress, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::POSITION_Z), startValue, TEST_LOCATION );
application.SendNotification();
application.Render(static_cast<unsigned int>(durationSeconds*500.0f) + 1u/*just beyond the animation duration*/);
application.SendNotification();
finishCheck.CheckSignalNotReceived();
DALI_TEST_EQUALS( actor.GetCurrentPosition().z, fiftyPercentProgress, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::POSITION_X), startValue, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::POSITION_Y), startValue, TEST_LOCATION );
- DALI_TEST_EQUALS( actor.GetProperty<float>(Actor::Property::POSITION_Z), fiftyPercentProgress, TEST_LOCATION );
application.SendNotification();
application.Render(static_cast<unsigned int>(durationSeconds*500.0f) + 1u/*just beyond the animation duration*/);
END_TEST;
}
-int UtcDaliAnimationAnimateToActorPositionAlphaFunctioN(void)
+int UtcDaliAnimationAnimateToActorPositionAlphaFunctionP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationAnimateToActorOrientationQuaternioN(void)
+int UtcDaliAnimationAnimateToActorOrientationQuaternionP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationAnimateToActorOrientationAlphaFunctioN(void)
+int UtcDaliAnimationAnimateToActorOrientationAlphaFunctionP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationAnimateToActorColorGreeN(void)
+int UtcDaliAnimationAnimateToActorColorGreenP(void)
{
TestApplication application;
DALI_TEST_EQUALS(keyFrames.GetType(), Property::NONE, TEST_LOCATION);
keyFrames.Add(0.0f, 0.1f);
+
+ DALI_TEST_EQUALS(keyFrames.GetType(), Property::FLOAT, TEST_LOCATION);
+
+ KeyFrames keyFrames2( keyFrames);
+ DALI_TEST_CHECK( keyFrames2 );
+ DALI_TEST_EQUALS(keyFrames2.GetType(), Property::FLOAT, TEST_LOCATION);
+
+ KeyFrames keyFrames3 = KeyFrames::New();
+ keyFrames3.Add(0.6f, true);
+ DALI_TEST_CHECK( keyFrames3 );
+ DALI_TEST_EQUALS(keyFrames3.GetType(), Property::BOOLEAN, TEST_LOCATION);
+
+ keyFrames3 = keyFrames;
+ DALI_TEST_CHECK( keyFrames3 );
+ DALI_TEST_EQUALS(keyFrames3.GetType(), Property::FLOAT, TEST_LOCATION);
+
+ END_TEST;
+}
+
+int UtcDaliAnimationKeyFrames02P(void)
+{
+ TestApplication application;
+
+ KeyFrames keyFrames = KeyFrames::New();
+ DALI_TEST_EQUALS(keyFrames.GetType(), Property::NONE, TEST_LOCATION);
+
+ keyFrames.Add(0.0f, 0.1f);
keyFrames.Add(0.2f, 0.5f);
keyFrames.Add(0.4f, 0.0f);
keyFrames.Add(0.6f, 1.0f);
END_TEST;
}
-int UtcDaliAnimationKeyFrames02P(void)
+int UtcDaliAnimationKeyFrames03P(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationKeyFrames03P(void)
+int UtcDaliAnimationKeyFrames04P(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationKeyFrames04P(void)
+int UtcDaliAnimationKeyFrames05P(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationKeyFrames05P(void)
+int UtcDaliAnimationKeyFrames06P(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationKeyFrames06P(void)
+int UtcDaliAnimationKeyFrames07P(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationAnimateBetweenActorColorAlphaFunctioN(void)
+int UtcDaliAnimationAnimateBetweenActorColorAlphaFunctionP(void)
{
TestApplication application;
END_TEST;
}
-int UtcDaliAnimationAnimateAlphaFunctioN(void)
+int UtcDaliAnimationAnimateAlphaFunctionP(void)
{
TestApplication application;
animation.FinishedSignal().Connect( &application, finishCheck );
Vector3 startValue(1.0f, 1.0f, 1.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Constraint constraint = Constraint::New<Vector3>( actor, index, UpdateManagerTestConstraint( application ) );
constraint.Apply();
END_TEST;
}
-int UtcDaliAnimationExtendDuratioN(void)
+int UtcDaliAnimationExtendDurationP(void)
{
TestApplication application;
// Register a float property
float startValue(10.0f);
- Property::Index index = actor.RegisterProperty( "test-property", startValue );
+ Property::Index index = actor.RegisterProperty( "testProperty", startValue );
Stage::GetCurrent().Add(actor);
DALI_TEST_EQUALS( actor.GetProperty<float>(index), startValue, TEST_LOCATION );
END_TEST;
}
-int UtcDaliAnimationCustomUnsignedIntProperty(void)
+int UtcDaliAnimationCustomIntProperty(void)
{
TestApplication application;
Actor actor = Actor::New();
Stage::GetCurrent().Add(actor);
- unsigned int startValue(0u);
+ int startValue(0u);
- Property::Index index = actor.RegisterProperty("an-index", startValue);
- DALI_TEST_EQUALS( actor.GetProperty<unsigned int>(index), startValue, TEST_LOCATION );
+ Property::Index index = actor.RegisterProperty("anIndex", startValue);
+ DALI_TEST_EQUALS( actor.GetProperty<int>(index), startValue, TEST_LOCATION );
// Build the animation
float durationSeconds(1.0f);
Animation animation = Animation::New(durationSeconds);
- animation.AnimateTo( Property(actor, index), 20u );
+ animation.AnimateTo( Property(actor, index), 20 );
// Start the animation
animation.Play();
// We didn't expect the animation to finish yet
application.SendNotification();
finishCheck.CheckSignalNotReceived();
- DALI_TEST_EQUALS( actor.GetProperty<unsigned int>(index), 10u, TEST_LOCATION );
+ DALI_TEST_EQUALS( actor.GetProperty<int>(index), 10, TEST_LOCATION );
application.SendNotification();
application.Render(static_cast<unsigned int>(durationSeconds*500.0f) + 1u/*just beyond the animation duration*/);
// We did expect the animation to finish
application.SendNotification();
finishCheck.CheckSignalReceived();
- DALI_TEST_EQUALS( actor.GetProperty<unsigned int>(index), 20u, TEST_LOCATION );
+ DALI_TEST_EQUALS( actor.GetProperty<int>(index), 20, TEST_LOCATION );
END_TEST;
}