X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-core.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali%2Futc-Dali-Constrainer.cpp;h=33e6ec9f9b72c1600509092e979ad52c9a9c68d2;hp=e21272018a01055c88f41d8c6a62d1e8908deab3;hb=462cbee2270984cdca45488f3733d664dcf49187;hpb=dccb112f833a42ac69e9b6fd4adac70606aba0b6 diff --git a/automated-tests/src/dali/utc-Dali-Constrainer.cpp b/automated-tests/src/dali/utc-Dali-Constrainer.cpp index e212720..33e6ec9 100644 --- a/automated-tests/src/dali/utc-Dali-Constrainer.cpp +++ b/automated-tests/src/dali/utc-Dali-Constrainer.cpp @@ -189,14 +189,14 @@ int UtcPathConstrainerApplyRange(void) Vector3 position, tangent; float tValue; - actor.GetProperty(index).Get(tValue); + DevelHandle::GetCurrentProperty( actor, index ).Get(tValue); float currentCursor = ( tValue - range.x ) / (range.y-range.x); path.Sample(currentCursor, position, tangent ); DALI_TEST_EQUALS( actor.GetCurrentPosition(), position, TEST_LOCATION ); application.SendNotification(); application.Render(static_cast(durationSeconds*250.0f)/* 50% progress */); - actor.GetProperty(index).Get(tValue); + DevelHandle::GetCurrentProperty( actor, index ).Get(tValue); currentCursor = ( tValue - range.x ) / (range.y-range.x); path.Sample(currentCursor, position, tangent ); path.Sample(0.5, position, tangent ); @@ -223,6 +223,12 @@ int UtcPathConstrainerApplyRange(void) path.Sample(currentCursor, position, tangent ); DALI_TEST_EQUALS( actor.GetCurrentPosition(), position, TEST_LOCATION ); + // Ensure GetProperty also returns the final result + actor.GetProperty( index ).Get( tValue ); + currentCursor = ( tValue - range.x ) / (range.y-range.x); + path.Sample(currentCursor, position, tangent ); + DALI_TEST_EQUALS( actor.GetCurrentPosition(), position, TEST_LOCATION ); + END_TEST; }