[Non-ACR][NUI][Fix TC fail] 09/230509/1
authorDongsug Song <dongsug.song@samsung.com>
Fri, 10 Apr 2020 07:09:38 +0000 (16:09 +0900)
committerDongsug Song <dongsug.song@samsung.com>
Fri, 10 Apr 2020 07:15:54 +0000 (16:15 +0900)
- fix https://code.sec.samsung.net/jira/browse/TFDF-9701
- occurs rarely and only on wearable target

Change-Id: I54ab1e614ce31a9477eabbc665796d521c217108

tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs

index a92913d..0a628cc 100755 (executable)
@@ -558,19 +558,20 @@ namespace Tizen.NUI.Tests
             actor.PositionX = 0.0f;
             Window.Instance.GetDefaultLayer().Add(actor);
 
-            Animation animation = new Animation(1000);
+            Animation animation = new Animation(500);
             float targetPositionX = 1.0f;
             animation.AnimateTo(actor, "PositionX", targetPositionX, new AlphaFunction(AlphaFunction.BuiltinFunctions.Linear));
-            animation.EndAction = Animation.EndActions.Cancel;
+            //this should be StopFinal because it checks the target value of the Animation.
+            animation.EndAction = Animation.EndActions.StopFinal;
             animation.Play();
 
             await Task.Delay(1020);
             animation.Clear();
-            await Task.Delay(100);\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
-            Assert.AreEqual(1.0f, actor.PositionX, ANIMATION_EPSILON, "The PositionX of the actor is not correct here!");\r
+            await Task.Delay(100);
+
+            //in native TC code of utc-dali-animation-common.cpp, const float ANIMATION_EPSILON = 0.0001f;
+            const float ANIMATION_EPSILON = 0.0001f;
+            Assert.AreEqual(1.0f, actor.PositionX, ANIMATION_EPSILON, "The PositionX of the actor is not correct here!");
         }