1 using NUnit.Framework;
2 using NUnit.Framework.TUnit;
5 using Tizen.NUI.BaseComponents;
7 namespace Tizen.NUI.Devel.Tests
9 using tlog = Tizen.Log;
12 [Description("public/Input/TSAutofillContainer")]
13 internal class PublicAutofillContainerTest
15 private const string tag = "NUITEST";
20 tlog.Info(tag, "Init() is called!");
26 tlog.Info(tag, "Destroy() is called!");
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()
39 // tlog.Debug(tag, $"AutofillContainerConstructor START");
40 // AutofillContainer a1 = new AutofillContainer("myContainer");
41 // AutofillContainer b1 = new AutofillContainer(a1);
46 // tlog.Debug(tag, $"AutofillContainerConstructor END (OK)");
47 // Assert.Pass("AutofillContainerConstructor");
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()
59 // tlog.Debug(tag, $"AutofillContainerServiceEvent START");
60 // AutofillContainer a1 = new AutofillContainer("myContainer");
62 // a1.ServiceEvent += OnServiceEvent;
63 // a1.ServiceEvent -= OnServiceEvent;
64 // object o1 = new object();
65 // AutofillContainer.AuthenticationEventArgs e = new AutofillContainer.AuthenticationEventArgs();
67 // OnServiceEvent(o1, e);
70 // tlog.Debug(tag, $"AutofillContainerServiceEvent END (OK)");
71 // Assert.Pass("AutofillContainerServiceEvent");
74 //private void OnServiceEvent(object sender, AutofillContainer.AuthenticationEventArgs e)
76 // AutofillContainer a1 = new AutofillContainer("myContent");
77 // e.AutofillContainer = a1;
78 // a1 = e.AutofillContainer;
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()
90 // tlog.Debug(tag, $"AutofillContainerListEvent START");
91 // AutofillContainer a1 = new AutofillContainer("myContainer");
93 // a1.ListEvent += OnListEvent;
94 // a1.ListEvent -= OnListEvent;
95 // object o1 = new object();
96 // AutofillContainer.AuthenticationEventArgs e = new AutofillContainer.AuthenticationEventArgs();
98 // OnServiceEvent(o1, e);
101 // tlog.Debug(tag, $"AutofillContainerServiceEvent END (OK)");
102 // Assert.Pass("AutofillContainerServiceEvent");
105 //private void OnListEvent(object sender, AutofillContainer.ListEventArgs e)
107 // BaseComponents.View v1 = new BaseComponents.View();
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()
123 // tlog.Debug(tag, $"AutofillContainergetCPtr START");
124 // AutofillContainer a1 = new AutofillContainer("myContainer");
126 // global::System.Runtime.InteropServices.HandleRef b1 = AutofillContainer.getCPtr(a1);
127 // global::System.Runtime.InteropServices.HandleRef c1 = AutofillContainer.getCPtr(null);
131 // tlog.Debug(tag, $"AutofillContainergetCPtr END (OK)");
132 // Assert.Pass("AutofillContainergetCPtr");
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()
144 // tlog.Debug(tag, $"AutofillContainerAssign START");
145 // AutofillContainer a1 = new AutofillContainer("myContainer");
146 // AutofillContainer b1 = a1;
151 // tlog.Debug(tag, $"AutofillContainerAssign END (OK)");
152 // Assert.Pass("AutofillContainerAssign");
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()
164 // tlog.Debug(tag, $"AutofillContainerDownCast START");
165 // BaseHandle handle = new BaseHandle();
166 // AutofillContainer a1 = AutofillContainer.DownCast(handle);
170 // tlog.Debug(tag, $"AutofillContainerDownCast END (OK)");
171 // Assert.Pass("AutofillContainerDownCast");
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()
183 // tlog.Debug(tag, $"AutofillContainerAddAutofillView START");
184 // AutofillContainer a1 = new AutofillContainer("myContainer");
186 // BaseComponents.View view = new BaseComponents.View();
187 // int propertyIndex = 1;
188 // string id = "myContainer";
189 // string label = "testLabel";
191 // AutofillContainer.ItemHint hint = AutofillContainer.ItemHint.CreditCardExpirationData;
192 // bool isSensitive = false;
194 // a1.AddAutofillView(view, propertyIndex, id, label, hint, isSensitive);
197 // tlog.Debug(tag, $"AutofillContainerAddAutofillView END (OK)");
198 // Assert.Pass("AutofillContainerAddAutofillView");
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()
210 // tlog.Debug(tag, $"AutofillContainerRemoveAutofillItem START");
211 // AutofillContainer a1 = new AutofillContainer("myContainer");
213 // BaseComponents.View view = new BaseComponents.View();
214 // a1.RemoveAutofillItem(view);
217 // tlog.Debug(tag, $"AutofillContainerRemoveAutofillItem END (OK)");
218 // Assert.Pass("AutofillContainerRemoveAutofillItem");
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()
230 // tlog.Debug(tag, $"AutofillContainerSaveAutofillData START");
231 // AutofillContainer a1 = new AutofillContainer("myContainer");
233 // a1.SaveAutofillData();
236 // tlog.Debug(tag, $"AutofillContainerSaveAutofillData END (OK)");
237 // Assert.Pass("AutofillContainerSaveAutofillData");
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()
249 // tlog.Debug(tag, $"AutofillContainerRequestFillData START");
250 // AutofillContainer a1 = new AutofillContainer("myContainer");
252 // a1.RequestFillData();
255 // tlog.Debug(tag, $"AutofillContainerRequestFillData END (OK)");
256 // Assert.Pass("AutofillContainerRequestFillData");
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()
268 // tlog.Debug(tag, $"AutofillContainerGetAutofillServiceName START");
269 // AutofillContainer a1 = new AutofillContainer("myContainer");
271 // a1.GetAutofillServiceName();
274 // tlog.Debug(tag, $"AutofillContainerGetAutofillServiceName END (OK)");
275 // Assert.Pass("AutofillContainerGetAutofillServiceName");
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()
287 // tlog.Debug(tag, $"AutofillContainerGetAutofillServiceMessage START");
288 // AutofillContainer a1 = new AutofillContainer("myContainer");
290 // a1.GetAutofillServiceMessage();
293 // tlog.Debug(tag, $"AutofillContainerGetAutofillServiceMessage END (OK)");
294 // Assert.Pass("AutofillContainerGetAutofillServiceMessage");
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()
306 // tlog.Debug(tag, $"AutofillContainerGetAutofillServiceImagePath START");
307 // AutofillContainer a1 = new AutofillContainer("myContainer");
309 // a1.GetAutofillServiceImagePath();
312 // tlog.Debug(tag, $"AutofillContainerGetAutofillServiceImagePath END (OK)");
313 // Assert.Pass("AutofillContainerGetAutofillServiceImagePath");
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()
325 // tlog.Debug(tag, $"AutofillContainerGetListItemCount START");
326 // AutofillContainer a1 = new AutofillContainer("myContainer");
328 // a1.GetListItemCount();
331 // tlog.Debug(tag, $"AutofillContainerGetListItemCount END (OK)");
332 // Assert.Pass("AutofillContainerGetListItemCount");
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()
344 // tlog.Debug(tag, $"AutofillContainerGetListItem START");
345 // AutofillContainer a1 = new AutofillContainer("myContainer");
347 // a1.GetListItem(0);
350 // tlog.Debug(tag, $"AutofillContainerGetListItem END (OK)");
351 // Assert.Pass("AutofillContainerGetListItem");
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()
363 // tlog.Debug(tag, $"AutofillContainerSetSelectedItem START");
364 // AutofillContainer a1 = new AutofillContainer("myContainer");
366 // a1.SetSelectedItem("testContent");
369 // tlog.Debug(tag, $"AutofillContainerSetSelectedItem END (OK)");
370 // Assert.Pass("AutofillContainerSetSelectedItem");
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()
382 // tlog.Debug(tag, $"AutofillContainerAutofillServiceEventSignal START");
383 // AutofillContainer a1 = new AutofillContainer("myContainer");
385 // a1.AutofillServiceEventSignal();
388 // tlog.Debug(tag, $"AutofillContainerAutofillServiceEventSignal END (OK)");
389 // Assert.Pass("AutofillContainerAutofillServiceEventSignal");
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()
401 // tlog.Debug(tag, $"AutofillContainerAutofillListEventSignal START");
402 // AutofillContainer a1 = new AutofillContainer("myContainer");
404 // a1.AutofillListEventSignal();
407 // tlog.Debug(tag, $"AutofillContainerAutofillListEventSignal END (OK)");
408 // Assert.Pass("AutofillContainerAutofillListEventSignal");