From a4c17dc6605e6bc4efc7aa3c9652d3666270b387 Mon Sep 17 00:00:00 2001 From: Dongsug Song Date: Mon, 12 Oct 2020 12:11:31 +0900 Subject: [PATCH] [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 --- tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.7.4