3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6 using System.Collections.Generic;
8 namespace Tizen.NUI.Devel.Tests
10 using tlog = Tizen.Log;
13 [Description("public/Widget/WidgetView")]
14 public class PublicWidgetViewTest
16 private const string tag = "NUITEST";
17 private ImageView imageView = null;
18 private WidgetView widgetView = null;
23 tlog.Info(tag, "Init() is called!");
25 imageView = new ImageView();
26 widgetView = new WidgetView(imageView.SwigCPtr.Handle, false);
27 tlog.Debug(tag, " widgetView.Id : " + widgetView.Id.ToString());
36 widgetView?.Dispose();
39 tlog.Info(tag, "Destroy() is called!");
44 //[Description("WidgetView Constructor.")]
45 //[Property("SPEC", "Tizen.NUI.WidgetView.WidgetView C")]
46 //[Property("SPEC_URL", "-")]
47 //[Property("CRITERIA", "CONSTR")]
48 //[Property("AUTHOR", "guowei.wang@samsung.com")]
49 //public void WidgetViewConstructor()
51 // tlog.Debug(tag, $"WidgetViewConstructor START");
55 // var testingTarget = new WidgetView(widget.Id.ToString(), "WidgetView", 100, 200, 50.0f);
56 // Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
57 // Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
59 // testingTarget.Dispose();
61 // catch (Exception e)
63 // tlog.Debug(tag, e.Message.ToString());
64 // Assert.Fail("Caught Exception: Failed!");
67 // tlog.Debug(tag, $"WidgetViewConstructor END (OK)");
72 [Description("WidgetView Constructor. With WidgetView")]
73 [Property("SPEC", "Tizen.NUI.WidgetView.WidgetView C")]
74 [Property("SPEC_URL", "-")]
75 [Property("CRITERIA", "CONSTR")]
76 [Property("AUTHOR", "guowei.wang@samsung.com")]
77 public void WidgetViewConstructorWithWidgetView()
79 tlog.Debug(tag, $"WidgetViewConstructorWithWidgetView START");
81 var testingTarget = new WidgetView(widgetView);
82 Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
83 Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
85 testingTarget.Dispose();
86 tlog.Debug(tag, $"WidgetViewConstructorWithWidgetView END (OK)");
91 [Description("WidgetView WidgetAddedSignal.")]
92 [Property("SPEC", "Tizen.NUI.WidgetView.WidgetAddedSignal M")]
93 [Property("SPEC_URL", "-")]
94 [Property("CRITERIA", "MR")]
95 [Property("AUTHOR", "guowei.wang@samsung.com")]
96 public void WidgetViewWidgetAddedSignal()
98 tlog.Debug(tag, $"WidgetViewWidgetAddedSignal START");
100 var testingTarget = new WidgetView(widgetView);
101 Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
102 Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
106 testingTarget.WidgetAddedSignal();
110 tlog.Debug(tag, e.Message.ToString());
111 Assert.Fail("Caught Exception: Failed!");
114 testingTarget.Dispose();
115 tlog.Debug(tag, $"WidgetViewWidgetAddedSignal END (OK)");
120 [Description("WidgetView WidgetDeletedSignal.")]
121 [Property("SPEC", "Tizen.NUI.WidgetView.WidgetDeletedSignal M")]
122 [Property("SPEC_URL", "-")]
123 [Property("CRITERIA", "MR")]
124 [Property("AUTHOR", "guowei.wang@samsung.com")]
125 public void WidgetViewWidgetDeletedSignal()
127 tlog.Debug(tag, $"WidgetViewWidgetDeletedSignal START");
129 var testingTarget = new WidgetView(widgetView);
130 Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
131 Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
135 testingTarget.WidgetDeletedSignal();
139 tlog.Debug(tag, e.Message.ToString());
140 Assert.Fail("Caught Exception: Failed!");
143 testingTarget.Dispose();
144 tlog.Debug(tag, $"WidgetViewWidgetDeletedSignal END (OK)");
149 [Description("WidgetView WidgetCreationAbortedSignal.")]
150 [Property("SPEC", "Tizen.NUI.WidgetView.WidgetCreationAbortedSignal M")]
151 [Property("SPEC_URL", "-")]
152 [Property("CRITERIA", "MR")]
153 [Property("AUTHOR", "guowei.wang@samsung.com")]
154 public void WidgetViewWidgetCreationAbortedSignal()
156 tlog.Debug(tag, $"WidgetViewWidgetCreationAbortedSignal START");
158 var testingTarget = new WidgetView(widgetView);
159 Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
160 Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
164 testingTarget.WidgetCreationAbortedSignal();
168 tlog.Debug(tag, e.Message.ToString());
169 Assert.Fail("Caught Exception: Failed!");
172 testingTarget.Dispose();
173 tlog.Debug(tag, $"WidgetViewWidgetCreationAbortedSignal END (OK)");
178 [Description("WidgetView WidgetContentUpdatedSignal.")]
179 [Property("SPEC", "Tizen.NUI.WidgetView.WidgetContentUpdatedSignal M")]
180 [Property("SPEC_URL", "-")]
181 [Property("CRITERIA", "MR")]
182 [Property("AUTHOR", "guowei.wang@samsung.com")]
183 public void WidgetViewWidgetContentUpdatedSignal()
185 tlog.Debug(tag, $"WidgetViewWidgetContentUpdatedSignal START");
187 var testingTarget = new WidgetView(widgetView);
188 Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
189 Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
193 testingTarget.WidgetContentUpdatedSignal();
197 tlog.Debug(tag, e.Message.ToString());
198 Assert.Fail("Caught Exception: Failed!");
201 testingTarget.Dispose();
202 tlog.Debug(tag, $"WidgetViewWidgetContentUpdatedSignal END (OK)");
207 [Description("WidgetView WidgetUpdatePeriodChangedSignal.")]
208 [Property("SPEC", "Tizen.NUI.WidgetView.WidgetUpdatePeriodChangedSignal M")]
209 [Property("SPEC_URL", "-")]
210 [Property("CRITERIA", "MR")]
211 [Property("AUTHOR", "guowei.wang@samsung.com")]
212 public void WidgetViewWidgetUpdatePeriodChangedSignal()
214 tlog.Debug(tag, $"WidgetViewWidgetUpdatePeriodChangedSignal START");
216 var testingTarget = new WidgetView(widgetView);
217 Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
218 Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
222 testingTarget.WidgetUpdatePeriodChangedSignal();
226 tlog.Debug(tag, e.Message.ToString());
227 Assert.Fail("Caught Exception: Failed!");
230 testingTarget.Dispose();
231 tlog.Debug(tag, $"WidgetViewWidgetUpdatePeriodChangedSignal END (OK)");
236 [Description("WidgetView WidgetFaultedSignal.")]
237 [Property("SPEC", "Tizen.NUI.WidgetView.WidgetFaultedSignal M")]
238 [Property("SPEC_URL", "-")]
239 [Property("CRITERIA", "MR")]
240 [Property("AUTHOR", "guowei.wang@samsung.com")]
241 public void WidgetViewWidgetFaultedSignal()
243 tlog.Debug(tag, $"WidgetViewWidgetFaultedSignal START");
245 var testingTarget = new WidgetView(widgetView);
246 Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
247 Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
251 testingTarget.WidgetFaultedSignal();
255 tlog.Debug(tag, e.Message.ToString());
256 Assert.Fail("Caught Exception: Failed!");
259 testingTarget.Dispose();
260 tlog.Debug(tag, $"WidgetViewWidgetFaultedSignal END (OK)");
265 //[Description("WidgetView WidgetAdded.")]
266 //[Property("SPEC", "Tizen.NUI.WidgetView.WidgetAdded A")]
267 //[Property("SPEC_URL", "-")]
268 //[Property("CRITERIA", "PRW")]
269 //[Property("AUTHOR", "guowei.wang@samsung.com")]
270 //public void WidgetViewWidgetAdded()
272 // tlog.Debug(tag, $"WidgetViewWidgetAdded START");
274 // var testingTarget = new WidgetView(widgetView);
275 // Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
276 // Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
280 // testingTarget.WidgetAdded += MyOnWidgetAdded;
281 // testingTarget.WidgetAdded -= MyOnWidgetAdded;
283 // catch (Exception e)
285 // tlog.Debug(tag, e.Message.ToString());
286 // Assert.Fail("Caught Exception: Failed!");
289 // testingTarget.Dispose();
290 // tlog.Debug(tag, $"WidgetViewWidgetAdded END (OK)");
295 //[Description("WidgetView WidgetContentUpdated.")]
296 //[Property("SPEC", "Tizen.NUI.WidgetView.WidgetContentUpdated A")]
297 //[Property("SPEC_URL", "-")]
298 //[Property("CRITERIA", "PRW")]
299 //[Property("AUTHOR", "guowei.wang@samsung.com")]
300 //public void WidgetViewWidgetContentUpdated()
302 // tlog.Debug(tag, $"WidgetViewWidgetContentUpdated START");
304 // var testingTarget = new WidgetView(widgetView);
305 // Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
306 // Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
310 // testingTarget.WidgetContentUpdated += MyOnWidgetContentUpdated;
311 // testingTarget.WidgetContentUpdated -= MyOnWidgetContentUpdated;
313 // catch (Exception e)
315 // tlog.Debug(tag, e.Message.ToString());
316 // Assert.Fail("Caught Exception: Failed!");
319 // testingTarget.Dispose();
320 // tlog.Debug(tag, $"WidgetViewWidgetContentUpdated END (OK)");
325 //[Description("WidgetView WidgetDeleted.")]
326 //[Property("SPEC", "Tizen.NUI.WidgetView.WidgetDeleted A")]
327 //[Property("SPEC_URL", "-")]
328 //[Property("CRITERIA", "PRW")]
329 //[Property("AUTHOR", "guowei.wang@samsung.com")]
330 //public void WidgetViewWidgetDeleted()
332 // tlog.Debug(tag, $"WidgetViewWidgetDeleted START");
334 // var testingTarget = new WidgetView(widgetView);
335 // Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
336 // Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
340 // testingTarget.WidgetDeleted += MyOnWidgetDeleted;
341 // testingTarget.WidgetDeleted -= MyOnWidgetDeleted;
343 // catch (Exception e)
345 // tlog.Debug(tag, e.Message.ToString());
346 // Assert.Fail("Caught Exception: Failed!");
349 // testingTarget.Dispose();
350 // tlog.Debug(tag, $"WidgetViewWidgetDeleted END (OK)");
355 //[Description("WidgetView WidgetCreationAborted.")]
356 //[Property("SPEC", "Tizen.NUI.WidgetView.WidgetCreationAborted A")]
357 //[Property("SPEC_URL", "-")]
358 //[Property("CRITERIA", "PRW")]
359 //[Property("AUTHOR", "guowei.wang@samsung.com")]
360 //public void WidgetViewWidgetCreationAborted()
362 // tlog.Debug(tag, $"WidgetViewWidgetCreationAborted START");
364 // var testingTarget = new WidgetView(widgetView);
365 // Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
366 // Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
370 // testingTarget.WidgetCreationAborted += MyOnWidgetCreationAborted;
371 // testingTarget.WidgetCreationAborted -= MyOnWidgetCreationAborted;
373 // catch (Exception e)
375 // tlog.Debug(tag, e.Message.ToString());
376 // Assert.Fail("Caught Exception: Failed!");
379 // testingTarget.Dispose();
380 // tlog.Debug(tag, $"WidgetViewWidgetCreationAborted END (OK)");
385 //[Description("WidgetView WidgetUpdatePeriodChanged.")]
386 //[Property("SPEC", "Tizen.NUI.WidgetView.WidgetUpdatePeriodChanged A")]
387 //[Property("SPEC_URL", "-")]
388 //[Property("CRITERIA", "PRW")]
389 //[Property("AUTHOR", "guowei.wang@samsung.com")]
390 //public void WidgetViewWidgetUpdatePeriodChanged()
392 // tlog.Debug(tag, $"WidgetViewWidgetUpdatePeriodChanged START");
394 // var testingTarget = new WidgetView(widgetView);
395 // Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
396 // Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
400 // testingTarget.WidgetUpdatePeriodChanged += MyOnWidgetUpdatePeriodChanged;
401 // testingTarget.WidgetUpdatePeriodChanged -= MyOnWidgetUpdatePeriodChanged;
403 // catch (Exception e)
405 // tlog.Debug(tag, e.Message.ToString());
406 // Assert.Fail("Caught Exception: Failed!");
409 // testingTarget.Dispose();
410 // tlog.Debug(tag, $"WidgetViewWidgetUpdatePeriodChanged END (OK)");
415 //[Description("WidgetView WidgetFaulted.")]
416 //[Property("SPEC", "Tizen.NUI.WidgetView.WidgetFaulted A")]
417 //[Property("SPEC_URL", "-")]
418 //[Property("CRITERIA", "PRW")]
419 //[Property("AUTHOR", "guowei.wang@samsung.com")]
420 //public void WidgetViewWidgetFaulted()
422 // tlog.Debug(tag, $"WidgetViewWidgetFaulted START");
424 // var testingTarget = new WidgetView(widgetView);
425 // Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
426 // Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
430 // testingTarget.WidgetFaulted += MyOnWidgetFaulted;
431 // testingTarget.WidgetFaulted -= MyOnWidgetFaulted;
433 // catch (Exception e)
435 // tlog.Debug(tag, e.Message.ToString());
436 // Assert.Fail("Caught Exception: Failed!");
439 // testingTarget.Dispose();
440 // tlog.Debug(tag, $"WidgetViewWidgetFaulted END (OK)");
443 private void MyOnWidgetAdded(object sender, EventArgs e) { }
444 //private void MyOnWidgetContentUpdated(object sender, EventArgs e) { }
445 //private void MyOnWidgetDeleted(object sender, EventArgs e) { }
446 //private void MyOnWidgetCreationAborted(object sender, EventArgs e) { }
447 //private void MyOnWidgetUpdatePeriodChanged(object sender, EventArgs e) { }
448 //private void MyOnWidgetFaulted(object sender, EventArgs e) { }
452 [Description("WidgetView WidgetID.")]
453 [Property("SPEC", "Tizen.NUI.WidgetView.WidgetID A")]
454 [Property("SPEC_URL", "-")]
455 [Property("CRITERIA", "PRO")]
456 [Property("AUTHOR", "guowei.wang@samsung.com")]
457 public void WidgetViewWidgetID()
459 tlog.Debug(tag, $"WidgetViewWidgetID START");
463 tlog.Debug(tag, "widgetView.WidgetID : " + widgetView.WidgetID);
467 tlog.Debug(tag, e.Message.ToString());
468 Assert.Fail("Caught Exception: Failed!");
471 tlog.Debug(tag, $"WidgetViewWidgetID END (OK)");
476 [Description("WidgetView InstanceID.")]
477 [Property("SPEC", "Tizen.NUI.WidgetView.InstanceID A")]
478 [Property("SPEC_URL", "-")]
479 [Property("CRITERIA", "PRO")]
480 [Property("AUTHOR", "guowei.wang@samsung.com")]
481 public void WidgetViewInstanceID()
483 tlog.Debug(tag, $"WidgetViewInstanceID START");
487 tlog.Debug(tag, "widgetView.InstanceID : " + widgetView.InstanceID);
491 tlog.Debug(tag, e.Message.ToString());
492 Assert.Fail("Caught Exception: Failed!");
495 tlog.Debug(tag, $"WidgetViewInstanceID END (OK)");
500 [Description("WidgetView ContentInfo.")]
501 [Property("SPEC", "Tizen.NUI.WidgetView.ContentInfo A")]
502 [Property("SPEC_URL", "-")]
503 [Property("CRITERIA", "PRO")]
504 [Property("AUTHOR", "guowei.wang@samsung.com")]
505 public void WidgetViewContentInfo()
507 tlog.Debug(tag, $"WidgetViewContentInfo START");
511 tlog.Debug(tag, "widgetView.ContentInfo : " + widgetView.ContentInfo);
515 tlog.Debug(tag, e.Message.ToString());
516 Assert.Fail("Caught Exception: Failed!");
519 tlog.Debug(tag, $"WidgetViewContentInfo END (OK)");
524 [Description("WidgetView Title.")]
525 [Property("SPEC", "Tizen.NUI.WidgetView.Title A")]
526 [Property("SPEC_URL", "-")]
527 [Property("CRITERIA", "PRO")]
528 [Property("AUTHOR", "guowei.wang@samsung.com")]
529 public void WidgetViewTitle()
531 tlog.Debug(tag, $"WidgetViewTitle START");
535 tlog.Debug(tag, "widgetView.Title : " + widgetView.Title);
539 tlog.Debug(tag, e.Message.ToString());
540 Assert.Fail("Caught Exception: Failed!");
543 tlog.Debug(tag, $"WidgetViewTitle END (OK)");
548 [Description("WidgetView UpdatePeriod.")]
549 [Property("SPEC", "Tizen.NUI.WidgetView.Title A")]
550 [Property("SPEC_URL", "-")]
551 [Property("CRITERIA", "PRO")]
552 [Property("AUTHOR", "guowei.wang@samsung.com")]
553 public void WidgetViewUpdatePeriod()
555 tlog.Debug(tag, $"WidgetViewUpdatePeriod START");
559 tlog.Debug(tag, "widgetView.UpdatePeriod : " + widgetView.UpdatePeriod);
563 tlog.Debug(tag, e.Message.ToString());
564 Assert.Fail("Caught Exception: Failed!");
567 tlog.Debug(tag, $"WidgetViewUpdatePeriod END (OK)");
572 [Description("WidgetView Preview.")]
573 [Property("SPEC", "Tizen.NUI.WidgetView.Preview A")]
574 [Property("SPEC_URL", "-")]
575 [Property("CRITERIA", "PRW")]
576 [Property("AUTHOR", "guowei.wang@samsung.com")]
577 public void WidgetViewPreview()
579 tlog.Debug(tag, $"WidgetViewPreview START");
583 tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.Preview);
585 widgetView.Preview = true;
586 tlog.Debug(tag, "widgetView.Preview : " + widgetView.Preview);
588 widgetView.Preview = false;
589 tlog.Debug(tag, "widgetView.Preview : " + widgetView.Preview);
593 tlog.Debug(tag, e.Message.ToString());
594 Assert.Fail("Caught Exception: Failed!");
597 tlog.Debug(tag, $"WidgetViewPreview END (OK)");
602 [Description("WidgetView LoadingText.")]
603 [Property("SPEC", "Tizen.NUI.WidgetView.LoadingText A")]
604 [Property("SPEC_URL", "-")]
605 [Property("CRITERIA", "PRW")]
606 [Property("AUTHOR", "guowei.wang@samsung.com")]
607 public void WidgetViewLoadingText()
609 tlog.Debug(tag, $"WidgetViewLoadingText START");
613 tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.LoadingText);
615 widgetView.LoadingText = true;
616 tlog.Debug(tag, "widgetView.LoadingText : " + widgetView.LoadingText);
618 widgetView.LoadingText = false;
619 tlog.Debug(tag, "widgetView.LoadingText : " + widgetView.LoadingText);
623 tlog.Debug(tag, e.Message.ToString());
624 Assert.Fail("Caught Exception: Failed!");
627 tlog.Debug(tag, $"WidgetViewLoadingText END (OK)");
632 [Description("WidgetView WidgetStateFaulted.")]
633 [Property("SPEC", "Tizen.NUI.WidgetView.WidgetStateFaulted A")]
634 [Property("SPEC_URL", "-")]
635 [Property("CRITERIA", "PRW")]
636 [Property("AUTHOR", "guowei.wang@samsung.com")]
637 public void WidgetViewWidgetStateFaulted()
639 tlog.Debug(tag, $"WidgetViewWidgetStateFaulted START");
643 tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.WidgetStateFaulted);
645 widgetView.WidgetStateFaulted = true;
646 tlog.Debug(tag, "widgetView.WidgetStateFaulted : " + widgetView.WidgetStateFaulted);
648 widgetView.WidgetStateFaulted = false;
649 tlog.Debug(tag, "widgetView.WidgetStateFaulted : " + widgetView.WidgetStateFaulted);
653 tlog.Debug(tag, e.Message.ToString());
654 Assert.Fail("Caught Exception: Failed!");
657 tlog.Debug(tag, $"WidgetViewWidgetStateFaulted END (OK)");
662 [Description("WidgetView PermanentDelete.")]
663 [Property("SPEC", "Tizen.NUI.WidgetView.PermanentDelete A")]
664 [Property("SPEC_URL", "-")]
665 [Property("CRITERIA", "PRW")]
666 [Property("AUTHOR", "guowei.wang@samsung.com")]
667 public void WidgetViewWidgetPermanentDelete()
669 tlog.Debug(tag, $"WidgetViewWidgetPermanentDelete START");
673 tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.PermanentDelete);
675 widgetView.PermanentDelete = true;
676 tlog.Debug(tag, "widgetView.PermanentDelete : " + widgetView.PermanentDelete);
678 widgetView.PermanentDelete = false;
679 tlog.Debug(tag, "widgetView.PermanentDelete : " + widgetView.PermanentDelete);
683 tlog.Debug(tag, e.Message.ToString());
684 Assert.Fail("Caught Exception: Failed!");
687 tlog.Debug(tag, $"WidgetViewWidgetPermanentDelete END (OK)");
692 [Description("WidgetView RetryText.")]
693 [Property("SPEC", "Tizen.NUI.WidgetView.RetryText A")]
694 [Property("SPEC_URL", "-")]
695 [Property("CRITERIA", "PRW")]
696 [Property("AUTHOR", "guowei.wang@samsung.com")]
697 public void WidgetViewRetryText()
699 tlog.Debug(tag, $"WidgetViewRetryText START");
703 using (PropertyMap map = new PropertyMap())
705 map.Insert(WidgetView.Property.RetryText, new PropertyValue(1));
707 widgetView.RetryText = map;
709 var result = widgetView.RetryText;
710 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
715 tlog.Debug(tag, e.Message.ToString());
716 Assert.Fail("Caught Exception: Failed!");
719 tlog.Debug(tag, $"WidgetViewRetryText END (OK)");
724 [Description("WidgetView Effect.")]
725 [Property("SPEC", "Tizen.NUI.WidgetView.Effect A")]
726 [Property("SPEC_URL", "-")]
727 [Property("CRITERIA", "PRW")]
728 [Property("AUTHOR", "guowei.wang@samsung.com")]
729 public void WidgetViewEffect()
731 tlog.Debug(tag, $"WidgetViewEffect START");
735 using (PropertyMap map = new PropertyMap())
737 map.Insert(WidgetView.Property.EFFECT, new PropertyValue(1));
739 widgetView.Effect = map;
741 var result = widgetView.Effect;
742 Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
747 tlog.Debug(tag, e.Message.ToString());
748 Assert.Fail("Caught Exception: Failed!");
751 tlog.Debug(tag, $"WidgetViewEffect END (OK)");
756 [Description("WidgetView PauseWidget.")]
757 [Property("SPEC", "Tizen.NUI.WidgetView.PauseWidget M")]
758 [Property("SPEC_URL", "-")]
759 [Property("CRITERIA", "MR")]
760 [Property("AUTHOR", "guowei.wang@samsung.com")]
761 public void WidgetViewWidgetPauseWidget()
763 tlog.Debug(tag, $"WidgetViewWidgetPauseWidget START");
765 var testingTarget = new WidgetView(widgetView);
766 Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
767 Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
771 testingTarget.PauseWidget();
772 testingTarget.ResumeWidget();
776 tlog.Debug(tag, e.Message.ToString());
777 Assert.Fail("Caught Exception: Failed!");
780 testingTarget.Dispose();
781 tlog.Debug(tag, $"WidgetViewWidgetPauseWidget END (OK)");
786 //[Description("WidgetView CancelTouchEvent.")]
787 //[Property("SPEC", "Tizen.NUI.WidgetView.CancelTouchEvent M")]
788 //[Property("SPEC_URL", "-")]
789 //[Property("CRITERIA", "MR")]
790 //[Property("AUTHOR", "guowei.wang@samsung.com")]
791 //public void WidgetViewCancelTouchEvent()
793 // tlog.Debug(tag, $"WidgetViewCancelTouchEvent START");
795 // var testingTarget = new WidgetView(widgetView);
796 // Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
797 // Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
801 // tlog.Debug(tag, "testingTarget.CancelTouchEvent() : " + testingTarget.CancelTouchEvent());
803 // catch (Exception e)
805 // tlog.Debug(tag, e.Message.ToString());
806 // Assert.Fail("Caught Exception: Failed!");
809 // testingTarget.Dispose();
810 // tlog.Debug(tag, $"WidgetViewCancelTouchEvent END (OK)");
815 [Description("WidgetView ActivateFaultedWidget.")]
816 [Property("SPEC", "Tizen.NUI.WidgetView.ActivateFaultedWidget M")]
817 [Property("SPEC_URL", "-")]
818 [Property("CRITERIA", "MR")]
819 [Property("AUTHOR", "guowei.wang@samsung.com")]
820 public void WidgetViewActivateFaultedWidget()
822 tlog.Debug(tag, $"WidgetViewActivateFaultedWidget START");
824 var testingTarget = new WidgetView(widgetView);
825 Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
826 Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
830 testingTarget.ActivateFaultedWidget();
834 tlog.Debug(tag, e.Message.ToString());
835 Assert.Fail("Caught Exception: Failed!");
838 testingTarget.Dispose();
839 tlog.Debug(tag, $"WidgetViewActivateFaultedWidget END (OK)");
844 [Description("WidgetView TerminateWidget.")]
845 [Property("SPEC", "Tizen.NUI.WidgetView.TerminateWidget M")]
846 [Property("SPEC_URL", "-")]
847 [Property("CRITERIA", "MR")]
848 [Property("AUTHOR", "guowei.wang@samsung.com")]
849 public void WidgetViewTerminateWidget()
851 tlog.Debug(tag, $"WidgetViewTerminateWidget START");
853 var testingTarget = new WidgetView(widgetView);
854 Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
855 Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
859 testingTarget.TerminateWidget();
863 tlog.Debug(tag, e.Message.ToString());
864 Assert.Fail("Caught Exception: Failed!");
867 testingTarget.Dispose();
868 tlog.Debug(tag, $"WidgetViewTerminateWidget END (OK)");
873 //[Description("WidgetView DownCast.")]
874 //[Property("SPEC", "Tizen.NUI.WidgetView.DownCast M")]
875 //[Property("SPEC_URL", "-")]
876 //[Property("CRITERIA", "MR")]
877 //[Property("AUTHOR", "guowei.wang@samsung.com")]
878 //public void WidgetViewDownCast()
880 // tlog.Debug(tag, $"WidgetViewDownCast START");
882 // var testingTarget = new WidgetView(widgetView);
883 // Assert.IsNotNull(testingTarget, "Can't create success object WidgetView");
884 // Assert.IsInstanceOf<WidgetView>(testingTarget, "Should be an instance of WidgetView type.");
888 // WidgetView.DownCast(testingTarget);
890 // catch (Exception e)
892 // tlog.Debug(tag, e.Message.ToString());
893 // Assert.Fail("Caught Exception: Failed!");
896 // testingTarget.Dispose();
897 // tlog.Debug(tag, $"WidgetViewDownCast END (OK)");
902 [Description("WidgetView GetWidgetViewFromPtr.")]
903 [Property("SPEC", "Tizen.NUI.WidgetView.GetWidgetViewFromPtr M")]
904 [Property("SPEC_URL", "-")]
905 [Property("CRITERIA", "MR")]
906 [Property("AUTHOR", "guowei.wang@samsung.com")]
907 public void WidgetViewGetWidgetViewFromPtr()
909 tlog.Debug(tag, $"WidgetViewGetWidgetViewFromPtr START");
913 WidgetView.GetWidgetViewFromPtr(widgetView.SwigCPtr.Handle);
917 tlog.Debug(tag, e.Message.ToString());
918 Assert.Fail("Caught Exception: Failed!");
921 tlog.Debug(tag, $"WidgetViewGetWidgetViewFromPtr END (OK)");
926 [Description("WidgetView Assign.")]
927 [Property("SPEC", "Tizen.NUI.WidgetView.Assign M")]
928 [Property("SPEC_URL", "-")]
929 [Property("CRITERIA", "MR")]
930 [Property("AUTHOR", "guowei.wang@samsung.com")]
931 public void WidgetViewAssign()
933 tlog.Debug(tag, $"WidgetViewAssign START");
937 widgetView.Assign(widgetView);
941 tlog.Debug(tag, e.Message.ToString());
942 Assert.Fail("Caught Exception: Failed!");
945 tlog.Debug(tag, $"WidgetViewAssign END (OK)");
950 [Description("WidgetView.WidgetViewEventArgs.WidgetView.")]
951 [Property("SPEC", "Tizen.NUI.WidgetView.WidgetViewEventArgs.WidgetView M")]
952 [Property("SPEC_URL", "-")]
953 [Property("CRITERIA", "MR")]
954 [Property("AUTHOR", "guowei.wang@samsung.com")]
955 public void WidgetViewWidgetViewEventArgsWidgetView()
957 tlog.Debug(tag, $"WidgetViewWidgetViewEventArgsWidgetView START");
959 var testingTarget = new WidgetView.WidgetViewEventArgs();
960 tlog.Debug(tag, "Default testingTarget.WidgetView is : " + testingTarget.WidgetView);
962 testingTarget.WidgetView = widgetView;
963 tlog.Debug(tag, "testingTarget.WidgetView is : " + testingTarget.WidgetView);
965 tlog.Debug(tag, $"WidgetViewWidgetViewEventArgsWidgetView END (OK)");