From: Dongsug Song Date: Fri, 10 Apr 2020 07:09:38 +0000 (+0900) Subject: [Non-ACR][NUI][Fix TC fail] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F230509%2F1;p=test%2Ftct%2Fcsharp%2Fapi.git [Non-ACR][NUI][Fix TC fail] - fix https://code.sec.samsung.net/jira/browse/TFDF-9701 - occurs rarely and only on wearable target Change-Id: I54ab1e614ce31a9477eabbc665796d521c217108 --- diff --git a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs index a92913d..0a628cc 100755 --- a/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs +++ b/tct-suite-vs/Tizen.NUI.Tests/testcase/TSAnimation.cs @@ -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); - - //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!"); + 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!"); }