From: Dongsug Song Date: Mon, 12 Oct 2020 03:11:31 +0000 (+0900) Subject: [Non-ACR][NUI][Fix testhub fail] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F245525%2F2;p=test%2Ftct%2Fcsharp%2Fapi.git [Non-ACR][NUI][Fix testhub fail] - The animation performance is varying differently according to target's processing power, so the delay should be fixed for least performance requirement. - Add debug logs. - Animation duration is changed and it would be no problem, because this is TC for Clear() method. Change-Id: I18db9d06a5f9cf6a53023d65b761b37c889ea0e0 --- diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs index a92913d..a8adcfd 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs @@ -558,15 +558,17 @@ namespace Tizen.NUI.Tests actor.PositionX = 0.0f; Window.Instance.GetDefaultLayer().Add(actor); - Animation animation = new Animation(1000); + Animation animation = new Animation(100); float targetPositionX = 1.0f; animation.AnimateTo(actor, "PositionX", targetPositionX, new AlphaFunction(AlphaFunction.BuiltinFunctions.Linear)); animation.EndAction = Animation.EndActions.Cancel; - animation.Play(); - + animation.Play(); + + Tizen.Log.Debug(TAG, $"before PositionX={actor.PositionX}"); await Task.Delay(1020); animation.Clear(); await Task.Delay(100); + Tizen.Log.Debug(TAG, $"after PositionX={actor.PositionX}"); //in native TC code of utc-dali-animation-common.cpp, const float ANIMATION_EPSILON = 0.0001f; const float ANIMATION_EPSILON = 0.0001f;