Merge remote-tracking branch 'origin/master' into tizen
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Widget / TSWidgetView.cs
1 using global::System;
2 using NUnit.Framework;
3 using NUnit.Framework.TUnit;
4 using Tizen.NUI.Components;
5 using Tizen.NUI.BaseComponents;
6 using System.Collections.Generic;
7
8 namespace Tizen.NUI.Devel.Tests
9 {
10     using tlog = Tizen.Log;
11
12     [TestFixture]
13     [Description("public/Widget/WidgetView")]
14     public class PublicWidgetViewTest
15     {
16         private const string tag = "NUITEST";
17         private ImageView imageView = null;
18         private WidgetView widgetView = null;
19
20         [SetUp]
21         public void Init()
22         {
23             tlog.Info(tag, "Init() is called!");
24
25             imageView = new ImageView();
26             widgetView = new WidgetView(imageView.SwigCPtr.Handle, false);
27             tlog.Debug(tag, " widgetView.Id : " + widgetView.Id.ToString());
28         }
29
30         [TearDown]
31         public void Destroy()
32         {
33             imageView?.Dispose();
34             imageView = null;
35
36             widgetView?.Dispose();
37             widgetView = null;
38
39             tlog.Info(tag, "Destroy() is called!");
40         }
41
42         //[Test]
43         //[Category("P1")]
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()
50         //{
51         //    tlog.Debug(tag, $"WidgetViewConstructor START");
52
53         //    try
54         //    {
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.");
58
59         //        testingTarget.Dispose();
60         //    }
61         //    catch (Exception e)
62         //    {
63         //        tlog.Debug(tag, e.Message.ToString());
64         //        Assert.Fail("Caught Exception: Failed!");
65         //    }
66
67         //    tlog.Debug(tag, $"WidgetViewConstructor END (OK)");
68         //}
69
70         [Test]
71         [Category("P1")]
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()
78         {
79             tlog.Debug(tag, $"WidgetViewConstructorWithWidgetView START");
80
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.");
84
85             testingTarget.Dispose();
86             tlog.Debug(tag, $"WidgetViewConstructorWithWidgetView END (OK)");
87         }
88
89         [Test]
90         [Category("P1")]
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()
97         {
98             tlog.Debug(tag, $"WidgetViewWidgetAddedSignal START");
99
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.");
103
104             try
105             {
106                 testingTarget.WidgetAddedSignal();
107             }
108             catch (Exception e)
109             {
110                 tlog.Debug(tag, e.Message.ToString());
111                 Assert.Fail("Caught Exception: Failed!");
112             }
113
114             testingTarget.Dispose();
115             tlog.Debug(tag, $"WidgetViewWidgetAddedSignal END (OK)");
116         }
117
118         [Test]
119         [Category("P1")]
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()
126         {
127             tlog.Debug(tag, $"WidgetViewWidgetDeletedSignal START");
128
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.");
132
133             try
134             {
135                 testingTarget.WidgetDeletedSignal();
136             }
137             catch (Exception e)
138             {
139                 tlog.Debug(tag, e.Message.ToString());
140                 Assert.Fail("Caught Exception: Failed!");
141             }
142
143             testingTarget.Dispose();
144             tlog.Debug(tag, $"WidgetViewWidgetDeletedSignal END (OK)");
145         }
146
147         [Test]
148         [Category("P1")]
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()
155         {
156             tlog.Debug(tag, $"WidgetViewWidgetCreationAbortedSignal START");
157
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.");
161
162             try
163             {
164                 testingTarget.WidgetCreationAbortedSignal();
165             }
166             catch (Exception e)
167             {
168                 tlog.Debug(tag, e.Message.ToString());
169                 Assert.Fail("Caught Exception: Failed!");
170             }
171
172             testingTarget.Dispose();
173             tlog.Debug(tag, $"WidgetViewWidgetCreationAbortedSignal END (OK)");
174         }
175
176         [Test]
177         [Category("P1")]
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()
184         {
185             tlog.Debug(tag, $"WidgetViewWidgetContentUpdatedSignal START");
186
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.");
190
191             try
192             {
193                 testingTarget.WidgetContentUpdatedSignal();
194             }
195             catch (Exception e)
196             {
197                 tlog.Debug(tag, e.Message.ToString());
198                 Assert.Fail("Caught Exception: Failed!");
199             }
200
201             testingTarget.Dispose();
202             tlog.Debug(tag, $"WidgetViewWidgetContentUpdatedSignal END (OK)");
203         }
204
205         [Test]
206         [Category("P1")]
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()
213         {
214             tlog.Debug(tag, $"WidgetViewWidgetUpdatePeriodChangedSignal START");
215
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.");
219
220             try
221             {
222                 testingTarget.WidgetUpdatePeriodChangedSignal();
223             }
224             catch (Exception e)
225             {
226                 tlog.Debug(tag, e.Message.ToString());
227                 Assert.Fail("Caught Exception: Failed!");
228             }
229
230             testingTarget.Dispose();
231             tlog.Debug(tag, $"WidgetViewWidgetUpdatePeriodChangedSignal END (OK)");
232         }
233
234         [Test]
235         [Category("P1")]
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()
242         {
243             tlog.Debug(tag, $"WidgetViewWidgetFaultedSignal START");
244
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.");
248
249             try
250             {
251                 testingTarget.WidgetFaultedSignal();
252             }
253             catch (Exception e)
254             {
255                 tlog.Debug(tag, e.Message.ToString());
256                 Assert.Fail("Caught Exception: Failed!");
257             }
258
259             testingTarget.Dispose();
260             tlog.Debug(tag, $"WidgetViewWidgetFaultedSignal END (OK)");
261         }
262
263         //[Test]
264         //[Category("P1")]
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()
271         //{
272         //    tlog.Debug(tag, $"WidgetViewWidgetAdded START");
273
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.");
277
278         //    try
279         //    {
280         //        testingTarget.WidgetAdded += MyOnWidgetAdded;
281         //        testingTarget.WidgetAdded -= MyOnWidgetAdded;
282         //    }
283         //    catch (Exception e)
284         //    {
285         //        tlog.Debug(tag, e.Message.ToString());
286         //        Assert.Fail("Caught Exception: Failed!");
287         //    }
288
289         //    testingTarget.Dispose();
290         //    tlog.Debug(tag, $"WidgetViewWidgetAdded END (OK)");
291         //}
292
293         //[Test]
294         //[Category("P1")]
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()
301         //{
302         //    tlog.Debug(tag, $"WidgetViewWidgetContentUpdated START");
303
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.");
307
308         //    try
309         //    {
310         //        testingTarget.WidgetContentUpdated += MyOnWidgetContentUpdated;
311         //        testingTarget.WidgetContentUpdated -= MyOnWidgetContentUpdated;
312         //    }
313         //    catch (Exception e)
314         //    {
315         //        tlog.Debug(tag, e.Message.ToString());
316         //        Assert.Fail("Caught Exception: Failed!");
317         //    }
318
319         //    testingTarget.Dispose();
320         //    tlog.Debug(tag, $"WidgetViewWidgetContentUpdated END (OK)");
321         //}
322
323         //[Test]
324         //[Category("P1")]
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()
331         //{
332         //    tlog.Debug(tag, $"WidgetViewWidgetDeleted START");
333
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.");
337
338         //    try
339         //    {
340         //        testingTarget.WidgetDeleted += MyOnWidgetDeleted;
341         //        testingTarget.WidgetDeleted -= MyOnWidgetDeleted;
342         //    }
343         //    catch (Exception e)
344         //    {
345         //        tlog.Debug(tag, e.Message.ToString());
346         //        Assert.Fail("Caught Exception: Failed!");
347         //    }
348
349         //    testingTarget.Dispose();
350         //    tlog.Debug(tag, $"WidgetViewWidgetDeleted END (OK)");
351         //}
352
353         //[Test]
354         //[Category("P1")]
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()
361         //{
362         //    tlog.Debug(tag, $"WidgetViewWidgetCreationAborted START");
363
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.");
367
368         //    try
369         //    {
370         //        testingTarget.WidgetCreationAborted += MyOnWidgetCreationAborted;
371         //        testingTarget.WidgetCreationAborted -= MyOnWidgetCreationAborted;
372         //    }
373         //    catch (Exception e)
374         //    {
375         //        tlog.Debug(tag, e.Message.ToString());
376         //        Assert.Fail("Caught Exception: Failed!");
377         //    }
378
379         //    testingTarget.Dispose();
380         //    tlog.Debug(tag, $"WidgetViewWidgetCreationAborted END (OK)");
381         //}
382
383         //[Test]
384         //[Category("P1")]
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()
391         //{
392         //    tlog.Debug(tag, $"WidgetViewWidgetUpdatePeriodChanged START");
393
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.");
397
398         //    try
399         //    {
400         //        testingTarget.WidgetUpdatePeriodChanged += MyOnWidgetUpdatePeriodChanged;
401         //        testingTarget.WidgetUpdatePeriodChanged -= MyOnWidgetUpdatePeriodChanged;
402         //    }
403         //    catch (Exception e)
404         //    {
405         //        tlog.Debug(tag, e.Message.ToString());
406         //        Assert.Fail("Caught Exception: Failed!");
407         //    }
408
409         //    testingTarget.Dispose();
410         //    tlog.Debug(tag, $"WidgetViewWidgetUpdatePeriodChanged END (OK)");
411         //}
412
413         //[Test]
414         //[Category("P1")]
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()
421         //{
422         //    tlog.Debug(tag, $"WidgetViewWidgetFaulted START");
423
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.");
427
428         //    try
429         //    {
430         //        testingTarget.WidgetFaulted += MyOnWidgetFaulted;
431         //        testingTarget.WidgetFaulted -= MyOnWidgetFaulted;
432         //    }
433         //    catch (Exception e)
434         //    {
435         //        tlog.Debug(tag, e.Message.ToString());
436         //        Assert.Fail("Caught Exception: Failed!");
437         //    }
438
439         //    testingTarget.Dispose();
440         //    tlog.Debug(tag, $"WidgetViewWidgetFaulted END (OK)");
441         //}
442
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) { }
449
450         [Test]
451         [Category("P1")]
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()
458         {
459             tlog.Debug(tag, $"WidgetViewWidgetID START");
460
461             try
462             {
463                 tlog.Debug(tag, "widgetView.WidgetID : " + widgetView.WidgetID);
464             }
465             catch (Exception e)
466             {
467                 tlog.Debug(tag, e.Message.ToString());
468                 Assert.Fail("Caught Exception: Failed!");
469             }
470
471             tlog.Debug(tag, $"WidgetViewWidgetID END (OK)");
472         }
473
474         [Test]
475         [Category("P1")]
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()
482         {
483             tlog.Debug(tag, $"WidgetViewInstanceID START");
484
485             try
486             {
487                 tlog.Debug(tag, "widgetView.InstanceID : " + widgetView.InstanceID);
488             }
489             catch (Exception e)
490             {
491                 tlog.Debug(tag, e.Message.ToString());
492                 Assert.Fail("Caught Exception: Failed!");
493             }
494
495             tlog.Debug(tag, $"WidgetViewInstanceID END (OK)");
496         }
497
498         [Test]
499         [Category("P1")]
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()
506         {
507             tlog.Debug(tag, $"WidgetViewContentInfo START");
508
509             try
510             {
511                 tlog.Debug(tag, "widgetView.ContentInfo : " + widgetView.ContentInfo);
512             }
513             catch (Exception e)
514             {
515                 tlog.Debug(tag, e.Message.ToString());
516                 Assert.Fail("Caught Exception: Failed!");
517             }
518
519             tlog.Debug(tag, $"WidgetViewContentInfo END (OK)");
520         }
521
522         [Test]
523         [Category("P1")]
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()
530         {
531             tlog.Debug(tag, $"WidgetViewTitle START");
532
533             try
534             {
535                 tlog.Debug(tag, "widgetView.Title : " + widgetView.Title);
536             }
537             catch (Exception e)
538             {
539                 tlog.Debug(tag, e.Message.ToString());
540                 Assert.Fail("Caught Exception: Failed!");
541             }
542
543             tlog.Debug(tag, $"WidgetViewTitle END (OK)");
544         }
545
546         [Test]
547         [Category("P1")]
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()
554         {
555             tlog.Debug(tag, $"WidgetViewUpdatePeriod START");
556
557             try
558             {
559                 tlog.Debug(tag, "widgetView.UpdatePeriod : " + widgetView.UpdatePeriod);
560             }
561             catch (Exception e)
562             {
563                 tlog.Debug(tag, e.Message.ToString());
564                 Assert.Fail("Caught Exception: Failed!");
565             }
566
567             tlog.Debug(tag, $"WidgetViewUpdatePeriod END (OK)");
568         }
569
570         [Test]
571         [Category("P1")]
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()
578         {
579             tlog.Debug(tag, $"WidgetViewPreview START");
580
581             try
582             {
583                 tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.Preview);
584
585                 widgetView.Preview = true;
586                 tlog.Debug(tag, "widgetView.Preview : " + widgetView.Preview);
587                 
588                 widgetView.Preview = false;
589                 tlog.Debug(tag, "widgetView.Preview : " + widgetView.Preview);
590             }
591             catch (Exception e)
592             {
593                 tlog.Debug(tag, e.Message.ToString());
594                 Assert.Fail("Caught Exception: Failed!");
595             }
596
597             tlog.Debug(tag, $"WidgetViewPreview END (OK)");
598         }
599
600         [Test]
601         [Category("P1")]
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()
608         {
609             tlog.Debug(tag, $"WidgetViewLoadingText START");
610
611             try
612             {
613                 tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.LoadingText);
614
615                 widgetView.LoadingText = true;
616                 tlog.Debug(tag, "widgetView.LoadingText : " + widgetView.LoadingText);
617
618                 widgetView.LoadingText = false;
619                 tlog.Debug(tag, "widgetView.LoadingText : " + widgetView.LoadingText);
620             }
621             catch (Exception e)
622             {
623                 tlog.Debug(tag, e.Message.ToString());
624                 Assert.Fail("Caught Exception: Failed!");
625             }
626
627             tlog.Debug(tag, $"WidgetViewLoadingText END (OK)");
628         }
629
630         [Test]
631         [Category("P1")]
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()
638         {
639             tlog.Debug(tag, $"WidgetViewWidgetStateFaulted START");
640
641             try
642             {
643                 tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.WidgetStateFaulted);
644
645                 widgetView.WidgetStateFaulted = true;
646                 tlog.Debug(tag, "widgetView.WidgetStateFaulted : " + widgetView.WidgetStateFaulted);
647
648                 widgetView.WidgetStateFaulted = false;
649                 tlog.Debug(tag, "widgetView.WidgetStateFaulted : " + widgetView.WidgetStateFaulted);
650             }
651             catch (Exception e)
652             {
653                 tlog.Debug(tag, e.Message.ToString());
654                 Assert.Fail("Caught Exception: Failed!");
655             }
656
657             tlog.Debug(tag, $"WidgetViewWidgetStateFaulted END (OK)");
658         }
659
660         [Test]
661         [Category("P1")]
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()
668         {
669             tlog.Debug(tag, $"WidgetViewWidgetPermanentDelete START");
670
671             try
672             {
673                 tlog.Debug(tag, "Default widgetView.Preview is : " + widgetView.PermanentDelete);
674
675                 widgetView.PermanentDelete = true;
676                 tlog.Debug(tag, "widgetView.PermanentDelete : " + widgetView.PermanentDelete);
677
678                 widgetView.PermanentDelete = false;
679                 tlog.Debug(tag, "widgetView.PermanentDelete : " + widgetView.PermanentDelete);
680             }
681             catch (Exception e)
682             {
683                 tlog.Debug(tag, e.Message.ToString());
684                 Assert.Fail("Caught Exception: Failed!");
685             }
686
687             tlog.Debug(tag, $"WidgetViewWidgetPermanentDelete END (OK)");
688         }
689
690         [Test]
691         [Category("P1")]
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()
698         {
699             tlog.Debug(tag, $"WidgetViewRetryText START");
700
701             try
702             {
703                 using (PropertyMap map = new PropertyMap())
704                 {
705                     map.Insert(WidgetView.Property.RetryText, new PropertyValue(1));
706
707                     widgetView.RetryText = map;
708
709                     var result = widgetView.RetryText;
710                     Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
711                 }
712             }
713             catch (Exception e)
714             {
715                 tlog.Debug(tag, e.Message.ToString());
716                 Assert.Fail("Caught Exception: Failed!");
717             }
718
719             tlog.Debug(tag, $"WidgetViewRetryText END (OK)");
720         }
721
722         [Test]
723         [Category("P1")]
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()
730         {
731             tlog.Debug(tag, $"WidgetViewEffect START");
732
733             try
734             {
735                 using (PropertyMap map = new PropertyMap())
736                 {
737                     map.Insert(WidgetView.Property.EFFECT, new PropertyValue(1));
738
739                     widgetView.Effect = map;
740
741                     var result = widgetView.Effect;
742                     Assert.IsInstanceOf<PropertyMap>(result, "Should be an instance of PropertyMap type.");
743                 }
744             }
745             catch (Exception e)
746             {
747                 tlog.Debug(tag, e.Message.ToString());
748                 Assert.Fail("Caught Exception: Failed!");
749             }
750
751             tlog.Debug(tag, $"WidgetViewEffect END (OK)");
752         }
753
754         [Test]
755         [Category("P1")]
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()
762         {
763             tlog.Debug(tag, $"WidgetViewWidgetPauseWidget START");
764
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.");
768
769             try
770             {
771                 testingTarget.PauseWidget();
772                 testingTarget.ResumeWidget();
773             }
774             catch (Exception e)
775             {
776                 tlog.Debug(tag, e.Message.ToString());
777                 Assert.Fail("Caught Exception: Failed!");
778             }
779
780             testingTarget.Dispose();
781             tlog.Debug(tag, $"WidgetViewWidgetPauseWidget END (OK)");
782         }
783
784         //[Test]
785         //[Category("P1")]
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()
792         //{
793         //    tlog.Debug(tag, $"WidgetViewCancelTouchEvent START");
794
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.");
798
799         //    try
800         //    {
801         //        tlog.Debug(tag, "testingTarget.CancelTouchEvent() : " + testingTarget.CancelTouchEvent());
802         //    }
803         //    catch (Exception e)
804         //    {
805         //        tlog.Debug(tag, e.Message.ToString());
806         //        Assert.Fail("Caught Exception: Failed!");
807         //    }
808
809         //    testingTarget.Dispose();
810         //    tlog.Debug(tag, $"WidgetViewCancelTouchEvent END (OK)");
811         //}
812
813         [Test]
814         [Category("P1")]
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()
821         {
822             tlog.Debug(tag, $"WidgetViewActivateFaultedWidget START");
823
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.");
827
828             try
829             {
830                 testingTarget.ActivateFaultedWidget();
831             }
832             catch (Exception e)
833             {
834                 tlog.Debug(tag, e.Message.ToString());
835                 Assert.Fail("Caught Exception: Failed!");
836             }
837
838             testingTarget.Dispose();
839             tlog.Debug(tag, $"WidgetViewActivateFaultedWidget END (OK)");
840         }
841
842         [Test]
843         [Category("P1")]
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()
850         {
851             tlog.Debug(tag, $"WidgetViewTerminateWidget START");
852
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.");
856
857             try
858             {
859                 testingTarget.TerminateWidget();
860             }
861             catch (Exception e)
862             {
863                 tlog.Debug(tag, e.Message.ToString());
864                 Assert.Fail("Caught Exception: Failed!");
865             }
866
867             testingTarget.Dispose();
868             tlog.Debug(tag, $"WidgetViewTerminateWidget END (OK)");
869         }
870
871         //[Test]
872         //[Category("P1")]
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()
879         //{
880         //    tlog.Debug(tag, $"WidgetViewDownCast START");
881
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.");
885
886         //    try
887         //    {
888         //        WidgetView.DownCast(testingTarget);
889         //    }
890         //    catch (Exception e)
891         //    {
892         //        tlog.Debug(tag, e.Message.ToString());
893         //        Assert.Fail("Caught Exception: Failed!");
894         //    }
895
896         //    testingTarget.Dispose();
897         //    tlog.Debug(tag, $"WidgetViewDownCast END (OK)");
898         //}
899
900         [Test]
901         [Category("P1")]
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()
908         {
909             tlog.Debug(tag, $"WidgetViewGetWidgetViewFromPtr START");
910
911             try
912             {
913                 WidgetView.GetWidgetViewFromPtr(widgetView.SwigCPtr.Handle);
914             }
915             catch (Exception e)
916             {
917                 tlog.Debug(tag, e.Message.ToString());
918                 Assert.Fail("Caught Exception: Failed!");
919             }
920
921             tlog.Debug(tag, $"WidgetViewGetWidgetViewFromPtr END (OK)");
922         }
923
924         [Test]
925         [Category("P1")]
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()
932         {
933             tlog.Debug(tag, $"WidgetViewAssign START");
934
935             try
936             {
937                 widgetView.Assign(widgetView);
938             }
939             catch (Exception e)
940             {
941                 tlog.Debug(tag, e.Message.ToString());
942                 Assert.Fail("Caught Exception: Failed!");
943             }
944
945             tlog.Debug(tag, $"WidgetViewAssign END (OK)");
946         }
947
948         [Test]
949         [Category("P1")]
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()
956         {
957             tlog.Debug(tag, $"WidgetViewWidgetViewEventArgsWidgetView START");
958
959             var testingTarget = new WidgetView.WidgetViewEventArgs();
960             tlog.Debug(tag, "Default testingTarget.WidgetView is : " + testingTarget.WidgetView);
961
962             testingTarget.WidgetView = widgetView;
963             tlog.Debug(tag, "testingTarget.WidgetView is : " + testingTarget.WidgetView);
964
965             tlog.Debug(tag, $"WidgetViewWidgetViewEventArgsWidgetView END (OK)");
966         }
967
968
969     }
970 }