3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6 using System.Threading.Tasks;
8 namespace Tizen.NUI.Devel.Tests
10 using static Tizen.NUI.Animation;
11 using tlog = Tizen.Log;
14 [Description("public/Animation/Animation")]
15 class PublicAnimationTest
17 private const string tag = "NUITEST";
19 private void OnFinished(object sender, EventArgs e)
21 tlog.Debug(tag, "OnFinished : Finished!");
24 private void OnProgressReached(object sender, EventArgs e)
26 tlog.Debug(tag, "OnProgressReached : ProgressReached!");
32 tlog.Info(tag, "Init() is called!");
38 tlog.Info(tag, "Destroy() is called!");
43 [Description("Animation constructor")]
44 [Property("SPEC", "Tizen.NUI.Animation.Animation C")]
45 [Property("SPEC_URL", "-")]
46 [Property("CRITERIA", "CONSTR")]
47 [Property("AUTHOR", "guowei.wang@samsung.com")]
48 public void AnimationConstructor()
50 tlog.Debug(tag, $"AnimationConstructor START");
52 var testingTarget = new Animation(2000);
53 Assert.IsNotNull(testingTarget, "should be not null");
54 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
56 testingTarget.Finished += OnFinished;
57 testingTarget.Finished -= OnFinished;
59 testingTarget.ProgressReached += OnProgressReached;
60 testingTarget.ProgressReached -= OnProgressReached;
62 testingTarget.Dispose();
63 tlog.Debug(tag, $"AnimationConstructor END (OK)");
68 [Description("Animation DownCast")]
69 [Property("SPEC", "Tizen.NUI.Animation.DownCast M")]
70 [Property("SPEC_URL", "-")]
71 [Property("CRITERIA", "CONSTR")]
72 [Property("AUTHOR", "guowei.wang@samsung.com")]
73 public void AnimationDownCast()
75 tlog.Debug(tag, $"AnimationDownCast START");
77 using (Animation ani = new Animation(300))
79 var testingTarget = Animation.DownCast(ani);
80 Assert.IsNotNull(testingTarget, "should be not null");
81 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
83 testingTarget.Dispose();
86 tlog.Debug(tag, $"AnimationDownCast END (OK)");
91 [Description("Animation DownCast")]
92 [Property("SPEC", "Tizen.NUI.Animation.DownCast M")]
93 [Property("SPEC_URL", "-")]
94 [Property("CRITERIA", "CONSTR")]
95 [Property("AUTHOR", "guowei.wang@samsung.com")]
96 public void AnimationDownCastWithNullHandle()
98 tlog.Debug(tag, $"AnimationDownCastWithNullHandle START");
100 BaseHandle handle = null;
104 Animation.DownCast(handle);
106 catch (ArgumentNullException)
108 tlog.Debug(tag, $"AnimationDownCastWithNullHandle END (OK)");
109 Assert.Pass("Caught ArgumentNullException : Passed!");
115 [Description("Animation Duration. Get")]
116 [Property("SPEC", "Tizen.NUI.Animation.Duration A")]
117 [Property("SPEC_URL", "-")]
118 [Property("CRITERIA", "PRO")]
119 [Property("AUTHOR", "guowei.wang@samsung.com")]
120 public void AnimationDurationGet()
122 tlog.Debug(tag, $"AnimationDurationGet START");
124 var testingTarget = new Animation(2000);
125 Assert.IsNotNull(testingTarget, "should be not null");
126 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
128 var result = testingTarget.Duration;
129 Assert.AreEqual(2000, result, "should be equal.");
131 testingTarget.Dispose();
132 tlog.Debug(tag, $"AnimationDurationGet END (OK)");
137 [Description("Animation Duration. Set")]
138 [Property("SPEC", "Tizen.NUI.Animation.Duration A")]
139 [Property("SPEC_URL", "-")]
140 [Property("CRITERIA", "PRO")]
141 [Property("AUTHOR", "guowei.wang@samsung.com")]
142 public void AnimationDurationSet()
144 tlog.Debug(tag, $"AnimationDurationSet START");
146 var testingTarget = new Animation();
147 Assert.IsNotNull(testingTarget, "should be not null");
148 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
150 testingTarget.Duration = 2000;
151 var result = testingTarget.Duration;
152 Assert.AreEqual(2000, result, "should be equal.");
154 testingTarget.Dispose();
155 tlog.Debug(tag, $"AnimationDurationSet END (OK)");
160 [Description("Animation DefaultAlphaFunction. Get")]
161 [Property("SPEC", "Tizen.NUI.Animation.DefaultAlphaFunction A")]
162 [Property("SPEC_URL", "-")]
163 [Property("CRITERIA", "PRO")]
164 [Property("AUTHOR", "guowei.wang@samsung.com")]
165 public void AnimationDefaultAlphaFunctionGet()
167 tlog.Debug(tag, $"AnimationDefaultAlphaFunctionGet START");
169 var testingTarget = new Animation();
170 Assert.IsNotNull(testingTarget, "should be not null");
171 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
173 var result = testingTarget.DefaultAlphaFunction;
174 Assert.IsNotNull(result, "should be not null");
175 Assert.IsInstanceOf<AlphaFunction>(result, "should be an instance of AlphaFunction class!");
177 testingTarget.Dispose();
178 tlog.Debug(tag, $"AnimationDefaultAlphaFunctionGet END (OK)");
183 [Description("Animation DefaultAlphaFunction. Set")]
184 [Property("SPEC", "Tizen.NUI.Animation.DefaultAlphaFunction A")]
185 [Property("SPEC_URL", "-")]
186 [Property("CRITERIA", "PRO")]
187 [Property("AUTHOR", "guowei.wang@samsung.com")]
188 public void AnimationDefaultAlphaFunctionSet()
190 tlog.Debug(tag, $"AnimationDefaultAlphaFunctionSet START");
192 var testingTarget = new Animation();
193 Assert.IsNotNull(testingTarget, "should be not null");
194 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
196 testingTarget.DefaultAlphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.Bounce);
197 var result = testingTarget.DefaultAlphaFunction;
198 Assert.IsNotNull(result, "should be not null");
199 Assert.IsInstanceOf<AlphaFunction>(result, "should be an instance of AlphaFunction class!");
201 testingTarget.Dispose();
202 tlog.Debug(tag, $"AnimationDefaultAlphaFunctionSet END (OK)");
207 [Description("Animation State")]
208 [Property("SPEC", "Tizen.NUI.Animation.State A")]
209 [Property("SPEC_URL", "-")]
210 [Property("CRITERIA", "PRO")]
211 [Property("AUTHOR", "guowei.wang@samsung.com")]
212 public void AnimationState()
214 tlog.Debug(tag, $"AnimationState START");
216 var testingTarget = new Animation();
217 Assert.IsNotNull(testingTarget, "should be not null");
218 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
220 var result = testingTarget.State;
221 Assert.AreEqual("Stopped", result.ToString(), "should be equal.");
223 testingTarget.Dispose();
224 tlog.Debug(tag, $"AnimationState END (OK)");
229 [Description("Animation LoopCount. Get")]
230 [Property("SPEC", "Tizen.NUI.Animation.LoopCount A")]
231 [Property("SPEC_URL", "-")]
232 [Property("CRITERIA", "PRO")]
233 [Property("AUTHOR", "guowei.wang@samsung.com")]
234 public void AnimationLoopCountGet()
236 tlog.Debug(tag, $"AnimationLoopCountGet START");
238 var testingTarget = new Animation();
239 Assert.IsNotNull(testingTarget, "should be not null");
240 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
242 var result = testingTarget.LoopCount;
243 Assert.IsTrue(1 == result);
245 testingTarget.Dispose();
246 tlog.Debug(tag, $"AnimationLoopCountGet END (OK)");
251 [Description("Animation LoopCount. Set")]
252 [Property("SPEC", "Tizen.NUI.Animation.LoopCount A")]
253 [Property("SPEC_URL", "-")]
254 [Property("CRITERIA", "PRO")]
255 [Property("AUTHOR", "guowei.wang@samsung.com")]
256 public void AnimationLoopCountSet()
258 tlog.Debug(tag, $"AnimationLoopCountSet START");
260 var testingTarget = new Animation();
261 Assert.IsNotNull(testingTarget, "should be not null");
262 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
264 testingTarget.LoopCount = 3;
265 var result = testingTarget.LoopCount;
266 Assert.IsTrue(3 == result);
268 testingTarget.Dispose();
269 tlog.Debug(tag, $"AnimationLoopCountSet END (OK)");
274 [Description("Animation Looping. Get")]
275 [Property("SPEC", "Tizen.NUI.Animation.Looping A")]
276 [Property("SPEC_URL", "-")]
277 [Property("CRITERIA", "PRO")]
278 [Property("AUTHOR", "guowei.wang@samsung.com")]
279 public void AnimationLoopingGet()
281 tlog.Debug(tag, $"AnimationLoopingGet START");
283 var testingTarget = new Animation();
284 Assert.IsNotNull(testingTarget, "should be not null");
285 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
287 var result = testingTarget.Looping;
288 Assert.IsFalse(result);
290 testingTarget.Dispose();
291 tlog.Debug(tag, $"AnimationLoopingGet END (OK)");
296 [Description("Animation Looping. Set")]
297 [Property("SPEC", "Tizen.NUI.Animation.Looping A")]
298 [Property("SPEC_URL", "-")]
299 [Property("CRITERIA", "PRO")]
300 [Property("AUTHOR", "guowei.wang@samsung.com")]
301 public void AnimationLoopingSet()
303 tlog.Debug(tag, $"AnimationLoopingSet START");
305 var testingTarget = new Animation();
306 Assert.IsNotNull(testingTarget, "should be not null");
307 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
309 testingTarget.Looping = true;
310 var result = testingTarget.Looping;
311 Assert.IsTrue(result);
313 testingTarget.Dispose();
314 tlog.Debug(tag, $"AnimationLoopingSet END (OK)");
319 [Description("Animation EndAction. Get")]
320 [Property("SPEC", "Tizen.NUI.Animation.EndAction A")]
321 [Property("SPEC_URL", "-")]
322 [Property("CRITERIA", "PRO")]
323 [Property("AUTHOR", "guowei.wang@samsung.com")]
324 public void AnimationEndActionGet()
326 tlog.Debug(tag, $"AnimationEndActionGet START");
328 var testingTarget = new Animation();
329 Assert.IsNotNull(testingTarget, "should be not null");
330 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
332 var result = testingTarget.EndAction;
333 Assert.IsTrue(EndActions.Cancel == result);
335 testingTarget.Dispose();
336 tlog.Debug(tag, $"AnimationEndActionGet END (OK)");
341 [Description("Animation EndAction. Set")]
342 [Property("SPEC", "Tizen.NUI.Animation.EndAction A")]
343 [Property("SPEC_URL", "-")]
344 [Property("CRITERIA", "PRO")]
345 [Property("AUTHOR", "guowei.wang@samsung.com")]
346 public void AnimationEndActionSet()
348 tlog.Debug(tag, $"AnimationEndActionSet START");
350 var testingTarget = new Animation();
351 Assert.IsNotNull(testingTarget, "should be not null");
352 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
354 testingTarget.EndAction = Animation.EndActions.Discard;
355 var result = testingTarget.EndAction;
356 Assert.IsTrue(EndActions.Discard == result);
358 testingTarget.Dispose();
359 tlog.Debug(tag, $"AnimationEndActionSet END (OK)");
364 [Description("Animation CurrentLoop")]
365 [Property("SPEC", "Tizen.NUI.Animation.CurrentLoop A")]
366 [Property("SPEC_URL", "-")]
367 [Property("CRITERIA", "PRO")]
368 [Property("AUTHOR", "guowei.wang@samsung.com")]
369 public void AnimationCurrentLoop()
371 tlog.Debug(tag, $"AnimationCurrentLoop START");
373 var testingTarget = new Animation();
374 Assert.IsNotNull(testingTarget, "should be not null");
375 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
377 var result = testingTarget.CurrentLoop;
378 Assert.IsTrue(0 == result);
380 testingTarget.Dispose();
381 tlog.Debug(tag, $"AnimationCurrentLoop END (OK)");
386 [Description("Animation DisconnectAction. Get")]
387 [Property("SPEC", "Tizen.NUI.Animation.DisconnectAction A")]
388 [Property("SPEC_URL", "-")]
389 [Property("CRITERIA", "PRO")]
390 [Property("AUTHOR", "guowei.wang@samsung.com")]
391 public void AnimationDisconnectActionGet()
393 tlog.Debug(tag, $"AnimationDisconnectActionGet START");
395 var testingTarget = new Animation();
396 Assert.IsNotNull(testingTarget, "should be not null");
397 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
399 var result = testingTarget.DisconnectAction;
400 Assert.IsTrue(EndActions.StopFinal == result);
402 testingTarget.Dispose();
403 tlog.Debug(tag, $"AnimationDisconnectActionGet END (OK)");
408 [Description("Animation DisconnectAction. Set")]
409 [Property("SPEC", "Tizen.NUI.Animation.DisconnectAction A")]
410 [Property("SPEC_URL", "-")]
411 [Property("CRITERIA", "PRO")]
412 [Property("AUTHOR", "guowei.wang@samsung.com")]
413 public void AnimationDisconnectActionSet()
415 tlog.Debug(tag, $"AnimationDisconnectActionSet START");
417 var testingTarget = new Animation();
418 Assert.IsNotNull(testingTarget, "should be not null");
419 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
421 testingTarget.DisconnectAction = Animation.EndActions.Cancel;
422 var result = testingTarget.EndAction;
423 Assert.IsTrue(EndActions.Cancel == result);
425 testingTarget.Dispose();
426 tlog.Debug(tag, $"AnimationDisconnectActionSet END (OK)");
431 [Description("Animation CurrentProgress. Get")]
432 [Property("SPEC", "Tizen.NUI.Animation.CurrentProgress A")]
433 [Property("SPEC_URL", "-")]
434 [Property("CRITERIA", "PRO")]
435 [Property("AUTHOR", "guowei.wang@samsung.com")]
436 public void AnimationCurrentProgressGet()
438 tlog.Debug(tag, $"AnimationCurrentProgressGet START");
440 var testingTarget = new Animation();
441 Assert.IsNotNull(testingTarget, "should be not null");
442 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
444 var result = testingTarget.CurrentProgress;
445 Assert.IsTrue(0 == result);
447 testingTarget.Dispose();
448 tlog.Debug(tag, $"AnimationCurrentProgressGet END (OK)");
453 [Description("Animation CurrentProgress. Set")]
454 [Property("SPEC", "Tizen.NUI.Animation.CurrentProgress A")]
455 [Property("SPEC_URL", "-")]
456 [Property("CRITERIA", "PRO")]
457 [Property("AUTHOR", "guowei.wang@samsung.com")]
458 public void AnimationCurrentProgressSet()
460 tlog.Debug(tag, $"AnimationCurrentProgressSet START");
462 var testingTarget = new Animation(3000);
463 Assert.IsNotNull(testingTarget, "should be not null");
464 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
466 testingTarget.CurrentProgress = 0.3f;
467 float result = testingTarget.CurrentProgress;
468 Assert.IsTrue(0 == result);
470 testingTarget.Dispose();
471 tlog.Debug(tag, $"AnimationCurrentProgressSet END (OK)");
476 [Description("Animation SpeedFactor. Get")]
477 [Property("SPEC", "Tizen.NUI.Animation.SpeedFactor A")]
478 [Property("SPEC_URL", "-")]
479 [Property("CRITERIA", "PRO")]
480 [Property("AUTHOR", "guowei.wang@samsung.com")]
481 public void AnimationSpeedFactorGet()
483 tlog.Debug(tag, $"AnimationSpeedFactorGet START");
485 var testingTarget = new Animation();
486 Assert.IsNotNull(testingTarget, "should be not null");
487 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
489 var result = testingTarget.SpeedFactor;
490 Assert.IsTrue(1 == result);
492 testingTarget.Dispose();
493 tlog.Debug(tag, $"AnimationSpeedFactorGet END (OK)");
498 [Description("Animation SpeedFactor. Set")]
499 [Property("SPEC", "Tizen.NUI.Animation.SpeedFactor A")]
500 [Property("SPEC_URL", "-")]
501 [Property("CRITERIA", "PRO")]
502 [Property("AUTHOR", "guowei.wang@samsung.com")]
503 public void AnimationSpeedFactorSet()
505 tlog.Debug(tag, $"AnimationSpeedFactorSet START");
507 var testingTarget = new Animation(3000);
508 Assert.IsNotNull(testingTarget, "should be not null");
509 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
511 testingTarget.SpeedFactor = 2;
512 float result = testingTarget.SpeedFactor;
513 Assert.IsTrue(2 == result);
515 testingTarget.Dispose();
516 tlog.Debug(tag, $"AnimationSpeedFactorSet END (OK)");
521 [Description("Animation PlayRange. Get")]
522 [Property("SPEC", "Tizen.NUI.Animation.PlayRange A")]
523 [Property("SPEC_URL", "-")]
524 [Property("CRITERIA", "PRO")]
525 [Property("AUTHOR", "guowei.wang@samsung.com")]
526 public void AnimationPlayRangeGet()
528 tlog.Debug(tag, $"AnimationPlayRangeGet START");
530 var testingTarget = new Animation();
531 Assert.IsNotNull(testingTarget, "should be not null");
532 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
534 var result = testingTarget.PlayRange;
535 Assert.IsTrue(0 == result.X);
536 Assert.IsTrue(1 == result.Y);
538 testingTarget.Dispose();
539 tlog.Debug(tag, $"AnimationPlayRangeGet END (OK)");
544 [Description("Animation PlayRange. Set")]
545 [Property("SPEC", "Tizen.NUI.Animation.PlayRange A")]
546 [Property("SPEC_URL", "-")]
547 [Property("CRITERIA", "PRO")]
548 [Property("AUTHOR", "guowei.wang@samsung.com")]
549 public void AnimationPlayRangeSet()
551 tlog.Debug(tag, $"AnimationPlayRangeSet START");
553 var testingTarget = new Animation(3000);
554 Assert.IsNotNull(testingTarget, "should be not null");
555 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
557 testingTarget.PlayRange = new RelativeVector2(0.3f, 0.5f);
558 var result = testingTarget.PlayRange;
559 Assert.IsTrue(0.3f == result.X);
560 Assert.IsTrue(0.5f == result.Y);
562 testingTarget.Dispose();
563 tlog.Debug(tag, $"AnimationPlayRangeSet END (OK)");
568 [Description("Animation ProgressNotification. Get")]
569 [Property("SPEC", "Tizen.NUI.Animation.ProgressNotification A")]
570 [Property("SPEC_URL", "-")]
571 [Property("CRITERIA", "PRO")]
572 [Property("AUTHOR", "guowei.wang@samsung.com")]
573 public void AnimationProgressNotificationGet()
575 tlog.Debug(tag, $"AnimationProgressNotificationGet START");
577 var testingTarget = new Animation();
578 Assert.IsNotNull(testingTarget, "should be not null");
579 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
581 var result = testingTarget.ProgressNotification;
582 Assert.IsTrue(0 == result);
584 testingTarget.Dispose();
585 tlog.Debug(tag, $"AnimationProgressNotificationGet END (OK)");
590 [Description("Animation ProgressNotification. Set")]
591 [Property("SPEC", "Tizen.NUI.Animation.ProgressNotification A")]
592 [Property("SPEC_URL", "-")]
593 [Property("CRITERIA", "PRO")]
594 [Property("AUTHOR", "guowei.wang@samsung.com")]
595 public void AnimationProgressNotificationSet()
597 tlog.Debug(tag, $"AnimationProgressNotificationSet START");
599 var testingTarget = new Animation(3000);
600 Assert.IsNotNull(testingTarget, "should be not null");
601 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
603 testingTarget.ProgressNotification = 0.3f;
604 var result = testingTarget.ProgressNotification;
605 Assert.IsTrue(0.3f == result);
607 testingTarget.Dispose();
608 tlog.Debug(tag, $"AnimationProgressNotificationSet END (OK)");
613 [Description("Animation Stop. Get")]
614 [Property("SPEC", "Tizen.NUI.Animation.Stop M")]
615 [Property("SPEC_URL", "-")]
616 [Property("CRITERIA", "MR")]
617 [Property("AUTHOR", "guowei.wang@samsung.com")]
618 public void AnimationStop()
620 tlog.Debug(tag, $"AnimationStop START");
622 var testingTarget = new Animation();
623 Assert.IsNotNull(testingTarget, "should be not null");
624 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
626 testingTarget.Stop(EndActions.Discard);
627 var result = testingTarget.EndAction;
628 Assert.IsTrue(EndActions.Discard == result);
630 testingTarget.Dispose();
631 tlog.Debug(tag, $"AnimationStop END (OK)");
636 [Description("Animation AnimateBy")]
637 [Property("SPEC", "Tizen.NUI.Animation.AnimateBy M")]
638 [Property("SPEC_URL", "-")]
639 [Property("CRITERIA", "MR")]
640 [Property("AUTHOR", "guowei.wang@samsung.com")]
641 public void AnimationAnimateBy()
643 tlog.Debug(tag, $"AnimationAnimateBy START");
645 View view = new View()
647 Position = new Position(0, 0)
649 Window.Instance.Add(view);
650 Assert.IsTrue(0 == view.Position.X);
651 Assert.IsTrue(0 == view.Position.Y);
653 var testingTarget = new Animation(1500);
654 Assert.IsNotNull(testingTarget, "should be not null");
655 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
657 testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
658 testingTarget.AnimateBy(view, "Position", new Position(100, 150));
659 testingTarget.EndAction = Animation.EndActions.StopFinal;
660 testingTarget.Play();
662 Assert.IsTrue(100 == view.Position.X);
663 Assert.IsTrue(150 == view.Position.Y);
666 testingTarget.Dispose();
667 tlog.Debug(tag, $"AnimationAnimateBy END (OK)");
672 [Description("Animation AnimateBy")]
673 [Property("SPEC", "Tizen.NUI.Animation.AnimateBy M")]
674 [Property("SPEC_URL", "-")]
675 [Property("CRITERIA", "MR")]
676 [Property("AUTHOR", "guowei.wang@samsung.com")]
677 public void AnimationAnimateByWithNullView()
679 tlog.Debug(tag, $"AnimationAnimateByWithNullView START");
683 var testingTarget = new Animation(1500);
684 Assert.IsNotNull(testingTarget, "should be not null");
685 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
687 testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
691 testingTarget.AnimateBy(view, "Position", new Position(100, 150));
693 catch (ArgumentNullException)
695 testingTarget.Dispose();
696 tlog.Debug(tag, $"AnimationAnimateByWithNullView END (OK)");
697 Assert.Pass("Caught ArgumentNullException : Passed!");
703 [Description("Animation AnimateBy")]
704 [Property("SPEC", "Tizen.NUI.Animation.AnimateBy M")]
705 [Property("SPEC_URL", "-")]
706 [Property("CRITERIA", "MR")]
707 [Property("AUTHOR", "guowei.wang@samsung.com")]
708 public void AnimationAnimateByNullProperty()
710 tlog.Debug(tag, $"AnimationAnimateByNullProperty START");
712 View view = new View()
714 Position = new Position(0, 0)
716 Window.Instance.Add(view);
717 Assert.IsTrue(0 == view.Position.X);
718 Assert.IsTrue(0 == view.Position.Y);
720 var testingTarget = new Animation(1500);
721 Assert.IsNotNull(testingTarget, "should be not null");
722 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
724 testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
728 string property = null;
729 testingTarget.AnimateBy(view, property, new Position(100, 150));
731 catch (ArgumentNullException)
733 Window.Instance.Remove(view);
735 testingTarget.Dispose();
736 tlog.Debug(tag, $"AnimationAnimateByNullProperty END (OK)");
737 Assert.Pass("Caught ArgumentNullException : Passed!");
743 [Description("Animation AnimateBy")]
744 [Property("SPEC", "Tizen.NUI.Animation.AnimateBy M")]
745 [Property("SPEC_URL", "-")]
746 [Property("CRITERIA", "MR")]
747 [Property("AUTHOR", "guowei.wang@samsung.com")]
748 public void AnimationAnimateByNullObject()
750 tlog.Debug(tag, $"AnimationAnimateByNullObject START");
752 View view = new View()
754 Position = new Position(0, 0)
756 Window.Instance.Add(view);
757 Assert.IsTrue(0 == view.Position.X);
758 Assert.IsTrue(0 == view.Position.Y);
760 var testingTarget = new Animation(1500);
761 Assert.IsNotNull(testingTarget, "should be not null");
762 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
764 testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
768 testingTarget.AnimateBy(view, "Position", null);
770 catch (ArgumentNullException)
772 Window.Instance.Remove(view);
774 testingTarget.Dispose();
775 tlog.Debug(tag, $"AnimationAnimateByNullObject END (OK)");
776 Assert.Pass("Caught ArgumentNullException : Passed!");
782 [Description("Animation AnimateBy. With start time and end time")]
783 [Property("SPEC", "Tizen.NUI.Animation.AnimateBy M")]
784 [Property("SPEC_URL", "-")]
785 [Property("CRITERIA", "MR")]
786 [Property("AUTHOR", "guowei.wang@samsung.com")]
787 public void AnimationAnimateByWithStartTimeAndEndTime()
789 tlog.Debug(tag, $"AnimationAnimateByWithStartTimeAndEndTime START");
791 var view = new View()
793 Position = new Position(0, 0)
795 Window.Instance.Add(view);
796 Assert.AreEqual(0, view.Position.X, "sholud be equal.");
797 Assert.AreEqual(0, view.Position.Y, "sholud be equal.");
799 var testingTarget = new Animation(1500);
800 Assert.IsNotNull(testingTarget, "should be not null");
801 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
803 testingTarget.EndAction = Animation.EndActions.StopFinal;
804 testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
805 testingTarget.AnimateBy(view, "Position", new Position(100, 150), 0, 0);
806 testingTarget.AnimateBy(view, "Position", new Position(300, 200), 0, 300);
808 testingTarget.Play();
809 Assert.AreEqual(400, view.Position.X, "sholud be equal.");
810 Assert.AreEqual(350, view.Position.Y, "sholud be equal.");
813 testingTarget.Dispose();
814 tlog.Debug(tag, $"AnimationAnimateByWithStartTimeAndEndTime END (OK)");
819 [Description("Animation AnimateBy. With start time and end time")]
820 [Property("SPEC", "Tizen.NUI.Animation.AnimateBy M")]
821 [Property("SPEC_URL", "-")]
822 [Property("CRITERIA", "MR")]
823 [Property("AUTHOR", "guowei.wang@samsung.com")]
824 public void AnimationAnimateByWithStartEndTimeAndNullView()
826 tlog.Debug(tag, $"AnimationAnimateByWithStartEndTimeAndNullView START");
830 var testingTarget = new Animation(1500);
831 Assert.IsNotNull(testingTarget, "should be not null");
832 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
834 testingTarget.EndAction = Animation.EndActions.StopFinal;
835 testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
839 testingTarget.AnimateBy(view, "Position", new Position(100, 150), 0, 300);
841 catch (ArgumentNullException)
843 testingTarget.Dispose();
844 tlog.Debug(tag, $"AnimationAnimateByWithStartEndTimeAndNullView END (OK)");
845 Assert.Pass("Caught ArgumentNullException : Passed!");
851 [Description("Animation AnimateBy. With start time and end time")]
852 [Property("SPEC", "Tizen.NUI.Animation.AnimateBy M")]
853 [Property("SPEC_URL", "-")]
854 [Property("CRITERIA", "MR")]
855 [Property("AUTHOR", "guowei.wang@samsung.com")]
856 public void AnimationAnimateByWithStartEndTimeAndNullString()
858 tlog.Debug(tag, $"AnimationAnimateByWithStartEndTimeAndNullString START");
860 var view = new View()
862 Position = new Position(0, 0)
864 Window.Instance.Add(view);
865 Assert.AreEqual(0, view.Position.X, "sholud be equal.");
866 Assert.AreEqual(0, view.Position.Y, "sholud be equal.");
868 var testingTarget = new Animation(1500);
869 Assert.IsNotNull(testingTarget, "should be not null");
870 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
872 testingTarget.EndAction = Animation.EndActions.StopFinal;
873 testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
877 testingTarget.AnimateBy(view, null, new Position(100, 150), 0, 300);
879 catch (ArgumentNullException)
881 Window.Instance.Remove(view);
883 testingTarget.Dispose();
884 tlog.Debug(tag, $"AnimationAnimateByWithStartEndTimeAndNullString END (OK)");
885 Assert.Pass("Caught ArgumentNullException : Passed!");
891 [Description("Animation AnimateBy. With start time and end time")]
892 [Property("SPEC", "Tizen.NUI.Animation.AnimateBy M")]
893 [Property("SPEC_URL", "-")]
894 [Property("CRITERIA", "MR")]
895 [Property("AUTHOR", "guowei.wang@samsung.com")]
896 public void AnimationAnimateByWithStartEndTimeAndNullObject()
898 tlog.Debug(tag, $"AnimationAnimateByWithStartEndTimeAndNullObject START");
900 var view = new View()
902 Position = new Position(0, 0)
904 Window.Instance.Add(view);
905 Assert.AreEqual(0, view.Position.X, "sholud be equal.");
906 Assert.AreEqual(0, view.Position.Y, "sholud be equal.");
908 var testingTarget = new Animation(1500);
909 Assert.IsNotNull(testingTarget, "should be not null");
910 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
912 testingTarget.EndAction = Animation.EndActions.StopFinal;
913 testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
917 testingTarget.AnimateBy(view, "position", null, 0, 300);
919 catch (ArgumentNullException)
921 Window.Instance.Remove(view);
923 testingTarget.Dispose();
924 tlog.Debug(tag, $"AnimationAnimateByWithStartEndTimeAndNullObject END (OK)");
925 Assert.Pass("Caught ArgumentNullException : Passed!");
931 [Description("Animation AnimateTo")]
932 [Property("SPEC", "Tizen.NUI.Animation.AnimateTo M")]
933 [Property("SPEC_URL", "-")]
934 [Property("CRITERIA", "MR")]
935 [Property("AUTHOR", "guowei.wang@samsung.com")]
936 public void AnimationAnimateTo()
938 tlog.Debug(tag, $"AnimationAnimateTo START");
940 var view = new View()
942 Position = new Position(0, 0)
944 Window.Instance.Add(view);
945 Assert.AreEqual(0, view.Position.X, "sholud be equal.");
946 Assert.AreEqual(0, view.Position.Y, "sholud be equal.");
948 var testingTarget = new Animation(1500);
949 Assert.IsNotNull(testingTarget, "should be not null");
950 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
952 testingTarget.EndAction = Animation.EndActions.StopFinal;
953 testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
954 testingTarget.AnimateTo(view, "Position", new Position(100, 150));
956 testingTarget.Play();
957 Assert.AreEqual(100, view.Position.X, "sholud be equal.");
958 Assert.AreEqual(150, view.Position.Y, "sholud be equal.");
961 testingTarget.Dispose();
962 tlog.Debug(tag, $"AnimationAnimateTo END (OK)");
967 [Description("Animation AnimateTo. With start time and end time")]
968 [Property("SPEC", "Tizen.NUI.Animation.AnimateTo M")]
969 [Property("SPEC_URL", "-")]
970 [Property("CRITERIA", "MR")]
971 [Property("AUTHOR", "guowei.wang@samsung.com")]
972 public void AnimationAnimateToWithStartTimeAndEndTime()
974 tlog.Debug(tag, $"AnimationAnimateToWithStartTimeAndEndTime START");
976 var view = new View()
978 Position = new Position(0, 0)
980 Window.Instance.Add(view);
981 Assert.AreEqual(0, view.Position.X, "sholud be equal.");
982 Assert.AreEqual(0, view.Position.Y, "sholud be equal.");
984 var testingTarget = new Animation(1500);
985 Assert.IsNotNull(testingTarget, "should be not null");
986 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
988 testingTarget.EndAction = Animation.EndActions.StopFinal;
989 testingTarget.DefaultAlphaFunction = new AlphaFunction(new Vector2(0.3f, 0), new Vector2(0.15f, 1));
990 testingTarget.AnimateTo(view, "Position", new Position(100, 150), 0, 0);
991 testingTarget.AnimateTo(view, "Position", new Position(300, 200), 0, 300);
993 testingTarget.Play();
994 Assert.AreEqual(300, view.Position.X, "sholud be equal.");
995 Assert.AreEqual(200, view.Position.Y, "sholud be equal.");
998 testingTarget.Dispose();
999 tlog.Debug(tag, $"AnimationAnimateToWithStartTimeAndEndTime END (OK)");
1004 [Description("Animation PlayAnimateTo")]
1005 [Property("SPEC", "Tizen.NUI.Animation.PlayAnimateTo M")]
1006 [Property("SPEC_URL", "-")]
1007 [Property("CRITERIA", "MR")]
1008 [Property("AUTHOR", "guowei.wang@samsung.com")]
1009 public void AnimationPlayAnimateTo()
1011 tlog.Debug(tag, $"AnimationPlayAnimateTo START");
1013 var testingTarget = new Animation(1500);
1014 Assert.IsNotNull(testingTarget, "should be not null");
1015 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1017 ImageView view = new ImageView()
1019 Size = new Size(100, 200),
1024 testingTarget.PlayAnimateTo(view);
1028 tlog.Debug(tag, e.Message.ToString());
1029 Assert.Fail("Caught Exception : Failed!");
1033 testingTarget.Dispose();
1034 tlog.Debug(tag, $"AnimationPlayAnimateTo END (OK)");
1039 [Description("Animation PlayAnimateTo")]
1040 [Property("SPEC", "Tizen.NUI.Animation.PlayAnimateTo M")]
1041 [Property("SPEC_URL", "-")]
1042 [Property("CRITERIA", "MR")]
1043 [Property("AUTHOR", "guowei.wang@samsung.com")]
1044 public void AnimationPlayAnimateToNullTarget()
1046 tlog.Debug(tag, $"AnimationPlayAnimateToNullTarget START");
1048 var testingTarget = new Animation(1500);
1049 Assert.IsNotNull(testingTarget, "should be not null");
1050 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1052 ImageView view = null;
1056 testingTarget.PlayAnimateTo(view);
1058 catch (ArgumentNullException)
1060 testingTarget.Dispose();
1061 tlog.Debug(tag, $"AnimationPlayAnimateToNullTarget END (OK)");
1062 Assert.Pass("Caught ArgumentNullException : Passed!");
1068 [Description("Animation AnimateBetween")]
1069 [Property("SPEC", "Tizen.NUI.Animation.AnimateBetween M")]
1070 [Property("SPEC_URL", "-")]
1071 [Property("CRITERIA", "MR")]
1072 [Property("AUTHOR", "guowei.wang@samsung.com")]
1073 public void AnimationAnimateBetween()
1075 tlog.Debug(tag, $"AnimationAnimateBetween START");
1077 View view = new View()
1082 var keyFrames = new KeyFrames();
1083 Assert.IsNotNull(keyFrames, "should be not null");
1084 Assert.IsInstanceOf<KeyFrames>(keyFrames, "should be an instance of Animation class!");
1085 keyFrames.Add(0.0f, 1.0f);
1087 var testingTarget = new Animation(600);
1088 Assert.IsNotNull(testingTarget, "should be not null");
1089 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1091 testingTarget.EndAction = Animation.EndActions.StopFinal;
1092 testingTarget.AnimateBetween(view, "Opacity", keyFrames);
1094 testingTarget.Dispose();
1095 keyFrames.Dispose();
1097 tlog.Debug(tag, $"AnimationAnimateBetween END (OK)");
1102 [Description("Animation AnimateBetween. With start time and end time")]
1103 [Property("SPEC", "Tizen.NUI.Animation.AnimateBetween M")]
1104 [Property("SPEC_URL", "-")]
1105 [Property("CRITERIA", "MR")]
1106 [Property("AUTHOR", "guowei.wang@samsung.com")]
1107 public void AnimationAnimateBetweenWithStartTimeAndEndTime()
1109 tlog.Debug(tag, $"AnimationAnimateBetweenWithStartTimeAndEndTime START");
1111 View view = new View()
1116 var keyFrames = new KeyFrames();
1117 Assert.IsNotNull(keyFrames, "should be not null");
1118 Assert.IsInstanceOf<KeyFrames>(keyFrames, "should be an instance of Animation class!");
1119 keyFrames.Add(0.0f, 1.0f);
1121 var testingTarget = new Animation(600);
1122 Assert.IsNotNull(testingTarget, "should be not null");
1123 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1125 testingTarget.EndAction = Animation.EndActions.StopFinal;
1126 testingTarget.AnimateBetween(view, "Opacity", keyFrames, 0, 600);
1128 testingTarget.Dispose();
1129 keyFrames.Dispose();
1131 tlog.Debug(tag, $"AnimationAnimateBetweenWithStartTimeAndEndTime END (OK)");
1136 [Description("Animation AnimatePath")]
1137 [Property("SPEC", "Tizen.NUI.Animation.AnimatePath M")]
1138 [Property("SPEC_URL", "-")]
1139 [Property("CRITERIA", "MR")]
1140 [Property("AUTHOR", "guowei.wang@samsung.com")]
1141 public void AnimationAnimatePath()
1143 tlog.Debug(tag, $"AnimationAnimatePath START");
1145 View view = new View()
1147 Size = new Size(200, 300)
1150 Path path = new Path();
1151 PropertyArray points = new PropertyArray();
1152 points.PushBack(new PropertyValue(new Vector3(0.5f, 0.0f, 0.8f)));
1153 points.PushBack(new PropertyValue(new Vector3(0.9f, 0.3f, 0.0f)));
1154 path.Points = points;
1156 var testingTarget = new Animation(600);
1157 Assert.IsNotNull(testingTarget, "should be not null");
1158 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1160 testingTarget.EndAction = Animation.EndActions.StopFinal;
1161 testingTarget.AnimatePath(view, path, new Vector3(0.0f, 0.6f, 1.2f));
1163 testingTarget.Dispose();
1167 tlog.Debug(tag, $"AnimationAnimatePath END (OK)");
1172 [Description("Animation AnimatePath. With start time and end time")]
1173 [Property("SPEC", "Tizen.NUI.Animation.AnimatePath M")]
1174 [Property("SPEC_URL", "-")]
1175 [Property("CRITERIA", "MR")]
1176 [Property("AUTHOR", "guowei.wang@samsung.com")]
1177 public void AnimationAnimatePathWithStartTimeAndEndTime()
1179 tlog.Debug(tag, $"AnimationAnimatePathWithStartTimeAndEndTime START");
1181 View view = new View()
1183 Size = new Size(200, 300)
1186 Path path = new Path();
1187 PropertyArray points = new PropertyArray();
1188 points.PushBack(new PropertyValue(new Vector3(0.5f, 0.0f, 0.8f)));
1189 points.PushBack(new PropertyValue(new Vector3(0.9f, 0.3f, 0.0f)));
1190 path.Points = points;
1192 var testingTarget = new Animation(600);
1193 Assert.IsNotNull(testingTarget, "should be not null");
1194 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1196 testingTarget.EndAction = Animation.EndActions.StopFinal;
1197 testingTarget.AnimatePath(view, path, new Vector3(0.0f, 0.6f, 1.2f), 0, 600);
1199 testingTarget.Dispose();
1203 tlog.Debug(tag, $"AnimationAnimatePathWithStartTimeAndEndTime END (OK)");
1208 [Description("Animation Play")]
1209 [Property("SPEC", "Tizen.NUI.Animation.Play M")]
1210 [Property("SPEC_URL", "-")]
1211 [Property("CRITERIA", "MR")]
1212 [Property("AUTHOR", "guowei.wang@samsung.com")]
1213 public void AnimationPlay()
1215 tlog.Debug(tag, $"AnimationPlay START");
1217 var testingTarget = new Animation(600);
1218 Assert.IsNotNull(testingTarget, "should be not null");
1219 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1221 testingTarget.EndAction = Animation.EndActions.StopFinal;
1224 testingTarget.Play();
1225 testingTarget.Stop();
1229 tlog.Error(tag, "Caught Exception" + e.ToString());
1230 LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
1231 Assert.Fail("Caught Exception" + e.ToString());
1234 testingTarget.Dispose();
1235 tlog.Debug(tag, $"AnimationPlay END (OK)");
1240 [Description("Animation PlayFrom")]
1241 [Property("SPEC", "Tizen.NUI.Animation.PlayFrom M")]
1242 [Property("SPEC_URL", "-")]
1243 [Property("CRITERIA", "MR")]
1244 [Property("AUTHOR", "guowei.wang@samsung.com")]
1245 public void AnimationPlayFrom()
1247 tlog.Debug(tag, $"AnimationPlayFrom START");
1249 var testingTarget = new Animation(600);
1250 Assert.IsNotNull(testingTarget, "should be not null");
1251 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1253 testingTarget.EndAction = Animation.EndActions.StopFinal;
1256 testingTarget.PlayFrom(0.3f);
1257 testingTarget.Stop();
1261 tlog.Error(tag, "Caught Exception" + e.ToString());
1262 LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
1263 Assert.Fail("Caught Exception" + e.ToString());
1266 testingTarget.Dispose();
1267 tlog.Debug(tag, $"AnimationPlayFrom END (OK)");
1272 [Description("Animation PlayAfter")]
1273 [Property("SPEC", "Tizen.NUI.Animation.PlayAfter M")]
1274 [Property("SPEC_URL", "-")]
1275 [Property("CRITERIA", "MR")]
1276 [Property("AUTHOR", "guowei.wang@samsung.com")]
1277 public void AnimationPlayAfter()
1279 tlog.Debug(tag, $"AnimationPlayAfter START");
1281 var testingTarget = new Animation(600);
1282 Assert.IsNotNull(testingTarget, "should be not null");
1283 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1285 testingTarget.EndAction = Animation.EndActions.StopFinal;
1288 testingTarget.PlayAfter(300);
1289 testingTarget.Stop();
1293 tlog.Error(tag, "Caught Exception" + e.ToString());
1294 LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
1295 Assert.Fail("Caught Exception" + e.ToString());
1298 testingTarget.Dispose();
1299 tlog.Debug(tag, $"AnimationPlayAfter END (OK)");
1304 [Description("Animation Clear")]
1305 [Property("SPEC", "Tizen.NUI.Animation.Stop M")]
1306 [Property("SPEC_URL", "-")]
1307 [Property("CRITERIA", "MR")]
1308 [Property("AUTHOR", "guowei.wang@samsung.com")]
1309 public void AnimationClear()
1311 tlog.Debug(tag, $"AnimationClear START");
1313 var testingTarget = new Animation(600);
1314 Assert.IsNotNull(testingTarget, "should be not null");
1315 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1317 testingTarget.EndAction = Animation.EndActions.StopFinal;
1318 testingTarget.Play();
1322 testingTarget.Clear();
1326 tlog.Error(tag, "Caught Exception" + e.ToString());
1327 LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Caught Exception" + e.ToString());
1328 Assert.Fail("Caught Exception" + e.ToString());
1332 testingTarget.Dispose();
1333 tlog.Debug(tag, $"AnimationClear END (OK)");
1338 [Description("Animation Show")]
1339 [Property("SPEC", "Tizen.NUI.Animation.Show M")]
1340 [Property("SPEC_URL", "-")]
1341 [Property("CRITERIA", "MR")]
1342 [Property("AUTHOR", "guowei.wang@samsung.com")]
1343 public void AnimationShow()
1345 tlog.Debug(tag, $"AnimationShow START");
1347 var testingTarget = new Animation(600);
1348 Assert.IsNotNull(testingTarget, "should be not null");
1349 Assert.IsInstanceOf<Animation>(testingTarget, "should be an instance of Animation class!");
1351 testingTarget.EndAction = Animation.EndActions.StopFinal;
1353 using (View view = new View() { Color = Color.Cyan, })
1355 testingTarget.Show(view, 200);
1356 testingTarget.Hide(view, 300);
1359 testingTarget.Play();
1360 testingTarget.Stop();
1362 testingTarget.Dispose();
1363 tlog.Debug(tag, $"AnimationShow END (OK)");