[Non-ACR][NUI][Fix testhub fail] 25/245525/2
authorDongsug Song <dongsug.song@samsung.com>
Mon, 12 Oct 2020 03:11:31 +0000 (12:11 +0900)
committerDongsug Song <dongsug.song@samsung.com>
Mon, 12 Oct 2020 03:15:50 +0000 (12:15 +0900)
- 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

index a92913d..a8adcfd 100755 (executable)
@@ -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();\r
+\r
+            Tizen.Log.Debug(TAG, $"before PositionX={actor.PositionX}");
             await Task.Delay(1020);
             animation.Clear();
             await Task.Delay(100);\r
+            Tizen.Log.Debug(TAG, $"after PositionX={actor.PositionX}");\r
 \r
             //in native TC code of utc-dali-animation-common.cpp, const float ANIMATION_EPSILON = 0.0001f;\r
             const float ANIMATION_EPSILON = 0.0001f;\r