[NUI] Update NUI.Devel to fix block and crash issues.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Input / TSAutofillContainer.cs
1 using NUnit.Framework;
2 using NUnit.Framework.TUnit;
3 using System;
4 using Tizen.NUI;
5 using Tizen.NUI.BaseComponents;
6
7 namespace Tizen.NUI.Devel.Tests
8 {
9     using tlog = Tizen.Log;
10
11     [TestFixture]
12     [Description("public/Input/TSAutofillContainer")]
13     internal class PublicAutofillContainerTest
14     {
15         private const string tag = "NUITEST";
16
17         [SetUp]
18         public void Init()
19         {
20             tlog.Info(tag, "Init() is called!");
21         }
22
23         [TearDown]
24         public void Destroy()
25         {
26             tlog.Info(tag, "Destroy() is called!");
27         }
28
29         //[Test]
30         //[Category("P1")]
31         //[Description("Create a AutofillContainer object.")]
32         //[Property("SPEC", "Tizen.NUI.AutofillContainer.AutofillContainer C")]
33         //[Property("SPEC_URL", "-")]
34         //[Property("CRITERIA", "CONSTR")]
35         //[Property("COVPARAM", "")]
36         //[Property("AUTHOR", "guowei.wang@samsung.com")]
37         //public void AutofillContainerConstructor()
38         //{
39         //    tlog.Debug(tag, $"AutofillContainerConstructor START");
40         //    AutofillContainer a1 = new AutofillContainer("myContainer");
41         //    AutofillContainer b1 = new AutofillContainer(a1);
42
43         //    b1.Dispose();
44         //    a1.Dispose();
45
46         //    tlog.Debug(tag, $"AutofillContainerConstructor END (OK)");
47         //    Assert.Pass("AutofillContainerConstructor");
48         //}
49
50         //[Test]
51         //[Category("P1")]
52         //[Description("AutofillContainer ServiceEvent")]
53         //[Property("SPEC", "Tizen.NUI.AutofillContainer.ServiceEvent M")]
54         //[Property("SPEC_URL", "-")]
55         //[Property("CRITERIA", "MR")]
56         //[Property("AUTHOR", "guowei.wang@samsung.com")]
57         //public void AutofillContainerServiceEvent()
58         //{
59         //    tlog.Debug(tag, $"AutofillContainerServiceEvent START");
60         //    AutofillContainer a1 = new AutofillContainer("myContainer");
61
62         //    a1.ServiceEvent += OnServiceEvent;
63         //    a1.ServiceEvent -= OnServiceEvent;
64         //    object o1 = new object();
65         //    AutofillContainer.AuthenticationEventArgs e = new AutofillContainer.AuthenticationEventArgs();
66
67         //    OnServiceEvent(o1, e);
68         //    a1.Dispose();
69
70         //    tlog.Debug(tag, $"AutofillContainerServiceEvent END (OK)");
71         //    Assert.Pass("AutofillContainerServiceEvent");
72         //}
73
74         //private void OnServiceEvent(object sender, AutofillContainer.AuthenticationEventArgs e)
75         //{
76         //    AutofillContainer a1 = new AutofillContainer("myContent");
77         //    e.AutofillContainer = a1;
78         //    a1 = e.AutofillContainer;
79         //}
80
81         //[Test]
82         //[Category("P1")]
83         //[Description("AutofillContainer ListEvent")]
84         //[Property("SPEC", "Tizen.NUI.AutofillContainer.ListEvent M")]
85         //[Property("SPEC_URL", "-")]
86         //[Property("CRITERIA", "MR")]
87         //[Property("AUTHOR", "guowei.wang@samsung.com")]
88         //public void AutofillContainerListEvent()
89         //{
90         //    tlog.Debug(tag, $"AutofillContainerListEvent START");
91         //    AutofillContainer a1 = new AutofillContainer("myContainer");
92
93         //    a1.ListEvent += OnListEvent;
94         //    a1.ListEvent -= OnListEvent;
95         //    object o1 = new object();
96         //    AutofillContainer.AuthenticationEventArgs e = new AutofillContainer.AuthenticationEventArgs();
97
98         //    OnServiceEvent(o1, e);
99         //    a1.Dispose();
100
101         //    tlog.Debug(tag, $"AutofillContainerServiceEvent END (OK)");
102         //    Assert.Pass("AutofillContainerServiceEvent");
103         //}
104
105         //private void OnListEvent(object sender, AutofillContainer.ListEventArgs e)
106         //{
107         //    BaseComponents.View v1 = new BaseComponents.View();
108         //    e.Control = v1;
109         //    v1 = e.Control;
110
111         //    v1.Dispose();
112         //}
113
114         //[Test]
115         //[Category("P1")]
116         //[Description("AutofillContainer getCPtr")]
117         //[Property("SPEC", "Tizen.NUI.AutofillContainer.getCPtr M")]
118         //[Property("SPEC_URL", "-")]
119         //[Property("CRITERIA", "MR")]
120         //[Property("AUTHOR", "guowei.wang@samsung.com")]
121         //public void AutofillContainergetCPtr()
122         //{
123         //    tlog.Debug(tag, $"AutofillContainergetCPtr START");
124         //    AutofillContainer a1 = new AutofillContainer("myContainer");
125
126         //    global::System.Runtime.InteropServices.HandleRef b1 = AutofillContainer.getCPtr(a1);
127         //    global::System.Runtime.InteropServices.HandleRef c1 = AutofillContainer.getCPtr(null);
128
129         //    a1.Dispose();
130
131         //    tlog.Debug(tag, $"AutofillContainergetCPtr END (OK)");
132         //    Assert.Pass("AutofillContainergetCPtr");
133         //}
134
135         //[Test]
136         //[Category("P1")]
137         //[Description("AutofillContainer Assign")]
138         //[Property("SPEC", "Tizen.NUI.AutofillContainer.Assign M")]
139         //[Property("SPEC_URL", "-")]
140         //[Property("CRITERIA", "MR")]
141         //[Property("AUTHOR", "guowei.wang@samsung.com")]
142         //public void AutofillContainerAssign()
143         //{
144         //    tlog.Debug(tag, $"AutofillContainerAssign START");
145         //    AutofillContainer a1 = new AutofillContainer("myContainer");
146         //    AutofillContainer b1 = a1;
147
148         //    b1.Dispose();
149         //    a1.Dispose();
150
151         //    tlog.Debug(tag, $"AutofillContainerAssign END (OK)");
152         //    Assert.Pass("AutofillContainerAssign");
153         //}
154
155         //[Test]
156         //[Category("P1")]
157         //[Description("AutofillContainer DownCast")]
158         //[Property("SPEC", "Tizen.NUI.AutofillContainer.DownCast M")]
159         //[Property("SPEC_URL", "-")]
160         //[Property("CRITERIA", "MR")]
161         //[Property("AUTHOR", "guowei.wang@samsung.com")]
162         //public void AutofillContainerDownCast()
163         //{
164         //    tlog.Debug(tag, $"AutofillContainerDownCast START");
165         //    BaseHandle handle = new BaseHandle();
166         //    AutofillContainer a1 = AutofillContainer.DownCast(handle);
167
168         //    handle.Dispose();
169
170         //    tlog.Debug(tag, $"AutofillContainerDownCast END (OK)");
171         //    Assert.Pass("AutofillContainerDownCast");
172         //}
173
174         //[Test]
175         //[Category("P1")]
176         //[Description("AutofillContainer AddAutofillView")]
177         //[Property("SPEC", "Tizen.NUI.AutofillContainer.AddAutofillView M")]
178         //[Property("SPEC_URL", "-")]
179         //[Property("CRITERIA", "MR")]
180         //[Property("AUTHOR", "guowei.wang@samsung.com")]
181         //public void AutofillContainerAddAutofillView()
182         //{
183         //    tlog.Debug(tag, $"AutofillContainerAddAutofillView START");
184         //    AutofillContainer a1 = new AutofillContainer("myContainer");
185
186         //    BaseComponents.View view = new BaseComponents.View();
187         //    int propertyIndex = 1;
188         //    string id = "myContainer";
189         //    string label = "testLabel";
190
191         //    AutofillContainer.ItemHint hint = AutofillContainer.ItemHint.CreditCardExpirationData;
192         //    bool isSensitive = false;
193
194         //    a1.AddAutofillView(view, propertyIndex, id, label, hint, isSensitive);
195         //    a1.Dispose();
196
197         //    tlog.Debug(tag, $"AutofillContainerAddAutofillView END (OK)");
198         //    Assert.Pass("AutofillContainerAddAutofillView");
199         //}
200
201         //[Test]
202         //[Category("P1")]
203         //[Description("AutofillContainer RemoveAutofillItem")]
204         //[Property("SPEC", "Tizen.NUI.AutofillContainer.RemoveAutofillItem M")]
205         //[Property("SPEC_URL", "-")]
206         //[Property("CRITERIA", "MR")]
207         //[Property("AUTHOR", "guowei.wang@samsung.com")]
208         //public void AutofillContainerRemoveAutofillItem()
209         //{
210         //    tlog.Debug(tag, $"AutofillContainerRemoveAutofillItem START");
211         //    AutofillContainer a1 = new AutofillContainer("myContainer");
212
213         //    BaseComponents.View view = new BaseComponents.View();
214         //    a1.RemoveAutofillItem(view);
215         //    a1.Dispose();
216
217         //    tlog.Debug(tag, $"AutofillContainerRemoveAutofillItem END (OK)");
218         //    Assert.Pass("AutofillContainerRemoveAutofillItem");
219         //}
220
221         //[Test]
222         //[Category("P1")]
223         //[Description("AutofillContainer SaveAutofillData")]
224         //[Property("SPEC", "Tizen.NUI.AutofillContainer.SaveAutofillData M")]
225         //[Property("SPEC_URL", "-")]
226         //[Property("CRITERIA", "MR")]
227         //[Property("AUTHOR", "guowei.wang@samsung.com")]
228         //public void AutofillContainerSaveAutofillData()
229         //{
230         //    tlog.Debug(tag, $"AutofillContainerSaveAutofillData START");
231         //    AutofillContainer a1 = new AutofillContainer("myContainer");
232
233         //    a1.SaveAutofillData();
234         //    a1.Dispose();
235
236         //    tlog.Debug(tag, $"AutofillContainerSaveAutofillData END (OK)");
237         //    Assert.Pass("AutofillContainerSaveAutofillData");
238         //}
239
240         //[Test]
241         //[Category("P1")]
242         //[Description("AutofillContainer RequestFillData")]
243         //[Property("SPEC", "Tizen.NUI.AutofillContainer.RequestFillData M")]
244         //[Property("SPEC_URL", "-")]
245         //[Property("CRITERIA", "MR")]
246         //[Property("AUTHOR", "guowei.wang@samsung.com")]
247         //public void AutofillContainerRequestFillData()
248         //{
249         //    tlog.Debug(tag, $"AutofillContainerRequestFillData START");
250         //    AutofillContainer a1 = new AutofillContainer("myContainer");
251
252         //    a1.RequestFillData();
253         //    a1.Dispose();
254
255         //    tlog.Debug(tag, $"AutofillContainerRequestFillData END (OK)");
256         //    Assert.Pass("AutofillContainerRequestFillData");
257         //}
258
259         //[Test]
260         //[Category("P1")]
261         //[Description("AutofillContainer GetAutofillServiceName")]
262         //[Property("SPEC", "Tizen.NUI.AutofillContainer.GetAutofillServiceName M")]
263         //[Property("SPEC_URL", "-")]
264         //[Property("CRITERIA", "MR")]
265         //[Property("AUTHOR", "guowei.wang@samsung.com")]
266         //public void AutofillContainerGetAutofillServiceName()
267         //{
268         //    tlog.Debug(tag, $"AutofillContainerGetAutofillServiceName START");
269         //    AutofillContainer a1 = new AutofillContainer("myContainer");
270
271         //    a1.GetAutofillServiceName();
272         //    a1.Dispose();
273
274         //    tlog.Debug(tag, $"AutofillContainerGetAutofillServiceName END (OK)");
275         //    Assert.Pass("AutofillContainerGetAutofillServiceName");
276         //}
277
278         //[Test]
279         //[Category("P1")]
280         //[Description("AutofillContainer GetAutofillServiceMessage")]
281         //[Property("SPEC", "Tizen.NUI.AutofillContainer.GetAutofillServiceMessage M")]
282         //[Property("SPEC_URL", "-")]
283         //[Property("CRITERIA", "MR")]
284         //[Property("AUTHOR", "guowei.wang@samsung.com")]
285         //public void AutofillContainerGetAutofillServiceMessage()
286         //{
287         //    tlog.Debug(tag, $"AutofillContainerGetAutofillServiceMessage START");
288         //    AutofillContainer a1 = new AutofillContainer("myContainer");
289
290         //    a1.GetAutofillServiceMessage();
291         //    a1.Dispose();
292
293         //    tlog.Debug(tag, $"AutofillContainerGetAutofillServiceMessage END (OK)");
294         //    Assert.Pass("AutofillContainerGetAutofillServiceMessage");
295         //}
296
297         //[Test]
298         //[Category("P1")]
299         //[Description("AutofillContainer GetAutofillServiceImagePath")]
300         //[Property("SPEC", "Tizen.NUI.AutofillContainer.GetAutofillServiceImagePath M")]
301         //[Property("SPEC_URL", "-")]
302         //[Property("CRITERIA", "MR")]
303         //[Property("AUTHOR", "guowei.wang@samsung.com")]
304         //public void AutofillContainerGetAutofillServiceImagePath()
305         //{
306         //    tlog.Debug(tag, $"AutofillContainerGetAutofillServiceImagePath START");
307         //    AutofillContainer a1 = new AutofillContainer("myContainer");
308
309         //    a1.GetAutofillServiceImagePath();
310         //    a1.Dispose();
311
312         //    tlog.Debug(tag, $"AutofillContainerGetAutofillServiceImagePath END (OK)");
313         //    Assert.Pass("AutofillContainerGetAutofillServiceImagePath");
314         //}
315
316         //[Test]
317         //[Category("P1")]
318         //[Description("AutofillContainer GetListItemCount")]
319         //[Property("SPEC", "Tizen.NUI.AutofillContainer.GetListItemCount M")]
320         //[Property("SPEC_URL", "-")]
321         //[Property("CRITERIA", "MR")]
322         //[Property("AUTHOR", "guowei.wang@samsung.com")]
323         //public void AutofillContainerGetListItemCount()
324         //{
325         //    tlog.Debug(tag, $"AutofillContainerGetListItemCount START");
326         //    AutofillContainer a1 = new AutofillContainer("myContainer");
327
328         //    a1.GetListItemCount();
329         //    a1.Dispose();
330
331         //    tlog.Debug(tag, $"AutofillContainerGetListItemCount END (OK)");
332         //    Assert.Pass("AutofillContainerGetListItemCount");
333         //}
334
335         //[Test]
336         //[Category("P1")]
337         //[Description("AutofillContainer GetListItem")]
338         //[Property("SPEC", "Tizen.NUI.AutofillContainer.GetListItem M")]
339         //[Property("SPEC_URL", "-")]
340         //[Property("CRITERIA", "MR")]
341         //[Property("AUTHOR", "guowei.wang@samsung.com")]
342         //public void AutofillContainerGetListItem()
343         //{
344         //    tlog.Debug(tag, $"AutofillContainerGetListItem START");
345         //    AutofillContainer a1 = new AutofillContainer("myContainer");
346
347         //    a1.GetListItem(0);
348         //    a1.Dispose();
349
350         //    tlog.Debug(tag, $"AutofillContainerGetListItem END (OK)");
351         //    Assert.Pass("AutofillContainerGetListItem");
352         //}
353
354         //[Test]
355         //[Category("P1")]
356         //[Description("AutofillContainer SetSelectedItem")]
357         //[Property("SPEC", "Tizen.NUI.AutofillContainer.SetSelectedItem M")]
358         //[Property("SPEC_URL", "-")]
359         //[Property("CRITERIA", "MR")]
360         //[Property("AUTHOR", "guowei.wang@samsung.com")]
361         //public void AutofillContainerSetSelectedItem()
362         //{
363         //    tlog.Debug(tag, $"AutofillContainerSetSelectedItem START");
364         //    AutofillContainer a1 = new AutofillContainer("myContainer");
365
366         //    a1.SetSelectedItem("testContent");
367         //    a1.Dispose();
368
369         //    tlog.Debug(tag, $"AutofillContainerSetSelectedItem END (OK)");
370         //    Assert.Pass("AutofillContainerSetSelectedItem");
371         //}
372
373         //[Test]
374         //[Category("P1")]
375         //[Description("AutofillContainer AutofillServiceEventSignal")]
376         //[Property("SPEC", "Tizen.NUI.AutofillContainer.AutofillServiceEventSignal M")]
377         //[Property("SPEC_URL", "-")]
378         //[Property("CRITERIA", "MR")]
379         //[Property("AUTHOR", "guowei.wang@samsung.com")]
380         //public void AutofillContainerAutofillServiceEventSignal()
381         //{
382         //    tlog.Debug(tag, $"AutofillContainerAutofillServiceEventSignal START");
383         //    AutofillContainer a1 = new AutofillContainer("myContainer");
384
385         //    a1.AutofillServiceEventSignal();
386         //    a1.Dispose();
387
388         //    tlog.Debug(tag, $"AutofillContainerAutofillServiceEventSignal END (OK)");
389         //    Assert.Pass("AutofillContainerAutofillServiceEventSignal");
390         //}
391
392         //[Test]
393         //[Category("P1")]
394         //[Description("AutofillContainer AutofillListEventSignal")]
395         //[Property("SPEC", "Tizen.NUI.AutofillContainer.AutofillListEventSignal M")]
396         //[Property("SPEC_URL", "-")]
397         //[Property("CRITERIA", "MR")]
398         //[Property("AUTHOR", "guowei.wang@samsung.com")]
399         //public void AutofillContainerAutofillListEventSignal()
400         //{
401         //    tlog.Debug(tag, $"AutofillContainerAutofillListEventSignal START");
402         //    AutofillContainer a1 = new AutofillContainer("myContainer");
403
404         //    a1.AutofillListEventSignal();
405         //    a1.Dispose();
406
407         //    tlog.Debug(tag, $"AutofillContainerAutofillListEventSignal END (OK)");
408         //    Assert.Pass("AutofillContainerAutofillListEventSignal");
409         //}
410     }
411 }