1 /*
2 * Copyright (c) 2021 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 #include "swiper_tdd_test.h"
16 #include "js_app_environment.h"
17 #include "root_view.h"
18 #include "stylemgr/app_style_item.h"
19 #include "stylemgr/app_style_manager.h"
20 #include "swiper_component.h"
21
22 namespace OHOS {
23 namespace ACELite {
SwiperTddTest()24 SwiperTddTest::SwiperTddTest()
25 : optionsObj_(UNDEFINED),
26 attrsObj_(UNDEFINED),
27 styleObj_(UNDEFINED),
28 eventObj_(UNDEFINED),
29 childrenObj_(UNDEFINED),
30 stack1_(nullptr),
31 stack2_(nullptr),
32 stack3_(nullptr) {}
33
SetUp()34 void SwiperTddTest::SetUp()
35 {
36 JsAppEnvironment* appJsEnv = JsAppEnvironment::GetInstance();
37 appJsEnv->InitJsFramework();
38 optionsObj_ = jerry_get_global_object();
39 jerry_value_t attrsKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("attrs"));
40 attrsObj_ = jerry_create_object();
41 jerry_value_t ret1 = jerry_set_property(optionsObj_, attrsKey, attrsObj_);
42 jerry_value_t styleKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("staticStyle"));
43 styleObj_ = jerry_create_object();
44 jerry_value_t ret2 = jerry_set_property(optionsObj_, styleKey, styleObj_);
45 jerry_value_t eventKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("on"));
46 eventObj_ = jerry_create_object();
47 jerry_value_t ret3 = jerry_set_property(optionsObj_, eventKey, eventObj_);
48 ReleaseJerryValue(attrsKey, styleKey, eventKey, ret1, ret2, ret3, VA_ARG_END_FLAG);
49
50 const int childrenNum = 3;
51 childrenObj_ = jerry_create_array(childrenNum);
52
53 jerry_value_t childOption = jerry_create_object();
54 jerry_value_t type = jerry_create_string(reinterpret_cast<const jerry_char_t *>("stack"));
55 ret1 = jerry_set_property_by_index(childOption, 0, type);
56 stack1_ = ComponentFactory::CreateComponent(KeyParser::ParseKeyId("div"), childOption, jerry_create_null());
57 stack1_->Render();
58 ret2 = jerry_set_property_by_index(childrenObj_, 0, stack1_->GetNativeElement());
59 ReleaseJerryValue(childOption, ret1, ret2, VA_ARG_END_FLAG);
60
61 childOption = jerry_create_object();
62 ret1 = jerry_set_property_by_index(childOption, 1, type);
63 stack2_ = ComponentFactory::CreateComponent(KeyParser::ParseKeyId("div"), childOption, jerry_create_null());
64 stack2_->Render();
65 ret2 = jerry_set_property_by_index(childrenObj_, 1, stack2_->GetNativeElement());
66 ReleaseJerryValue(childOption, ret1, ret2, VA_ARG_END_FLAG);
67
68 childOption = jerry_create_object();
69 const int pIndex = 2;
70 ret1 = jerry_set_property_by_index(childOption, pIndex, type);
71 stack3_ = ComponentFactory::CreateComponent(KeyParser::ParseKeyId("div"), childOption, jerry_create_null());
72 stack3_->Render();
73 ret2 = jerry_set_property_by_index(childrenObj_, pIndex, stack3_->GetNativeElement());
74 ReleaseJerryValue(childOption, ret1, ret2, type, VA_ARG_END_FLAG);
75 rootComponentMock_.PrepareRootContainer();
76 }
77
78
TearDown()79 void SwiperTddTest::TearDown()
80 {
81 ReleaseJerryValue(attrsObj_, styleObj_, eventObj_, optionsObj_, VA_ARG_END_FLAG);
82 JsAppContext::GetInstance()->ReleaseStyles();
83 stack1_->Release();
84 stack2_->Release();
85 stack3_->Release();
86 }
87
ComponentSwiperAttributeSetTest001()88 void SwiperTddTest::ComponentSwiperAttributeSetTest001()
89 {
90 TDD_CASE_BEGIN();
91 /**
92 * @tc.steps: step1. set index 2
93 */
94 jerry_value_t indexKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("index"));
95 const int val = 2;
96 jerry_value_t indexVal = jerry_create_number(val);
97 jerry_value_t ret1 = jerry_set_property(attrsObj_, indexKey, indexVal);
98 Component* component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
99 rootComponentMock_.RenderComponent(*component);
100
101 /**
102 * @tc.steps: step2. get native swiper object
103 */
104 UIView* view = component->GetComponentRootView();
105 UISwipeView* swiperView = reinterpret_cast<UISwipeView *>(view);
106 const int pageIndex = 2;
107 if (swiperView->GetCurrentPage() == pageIndex) {
108 printf("ComponentSwiperAttributeSetTest001 pass\n");
109 } else {
110 printf("ComponentSwiperAttributeSetTest001 fail\n");
111 }
112 EXPECT_EQ(swiperView->GetCurrentPage(), pageIndex);
113 ReleaseJerryValue(indexVal, ret1, VA_ARG_END_FLAG);
114
115 /**
116 * @tc.steps: step3. set index = '2'; get index = 2
117 */
118 indexVal = jerry_create_string(reinterpret_cast<const jerry_char_t *>("2"));
119 component->UpdateView(KeyParser::ParseKeyId("index"), indexVal);
120 view = component->GetComponentRootView();
121 swiperView = reinterpret_cast<UISwipeView *>(view);
122 if (swiperView->GetCurrentPage() == pageIndex) {
123 printf("ComponentSwiperAttributeSetTest001 pass\n");
124 } else {
125 printf("ComponentSwiperAttributeSetTest001 fail\n");
126 }
127 EXPECT_EQ(swiperView->GetCurrentPage(), pageIndex);
128 component->Release();
129 ReleaseJerryValue(indexVal, ret1, VA_ARG_END_FLAG);
130
131 /**
132 * @tc.steps: step4. set index = 0; get index = 0
133 */
134 indexVal = jerry_create_number(0);
135 ret1 = jerry_set_property(attrsObj_, indexKey, indexVal);
136 component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
137 rootComponentMock_.RenderComponent(*component);
138 view = component->GetComponentRootView();
139 swiperView = reinterpret_cast<UISwipeView *>(view);
140 if (swiperView->GetCurrentPage() == 0) {
141 printf("ComponentSwiperAttributeSetTest001 pass\n");
142 } else {
143 printf("ComponentSwiperAttributeSetTest001 fail\n");
144 }
145 EXPECT_EQ(swiperView->GetCurrentPage(), 0);
146 component->Release();
147 ReleaseJerryValue(indexKey, indexVal, ret1, VA_ARG_END_FLAG);
148 TDD_CASE_END();
149 }
150
ComponentSwiperAttributeSetTest002()151 void SwiperTddTest::ComponentSwiperAttributeSetTest002()
152 {
153 TDD_CASE_BEGIN();
154 /**
155 * @tc.steps: step1. dont set index value
156 */
157 Component* component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
158 rootComponentMock_.RenderComponent(*component);
159
160 /**
161 * @tc.steps: step2. get native swiper object
162 */
163 UIView* view = component->GetComponentRootView();
164 UISwipeView* swiperView = reinterpret_cast<UISwipeView *>(view);
165
166 /**
167 * @tc.steps: step3. get index = 0
168 */
169 if (swiperView->GetCurrentPage() == 0) {
170 printf("ComponentSwiperAttributeSetTest002 pass\n");
171 } else {
172 printf("ComponentSwiperAttributeSetTest002 fail\n");
173 }
174 EXPECT_EQ(swiperView->GetCurrentPage(), 0);
175 component->Release();
176
177 /**
178 * @tc.steps: step4. set index -1
179 */
180 jerry_value_t indexKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("index"));
181 jerry_value_t indexVal = jerry_create_string(reinterpret_cast<const jerry_char_t *>("abc123"));
182 jerry_value_t ret1 = jerry_set_property(attrsObj_, indexKey, indexVal);
183 component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
184 rootComponentMock_.RenderComponent(*component);
185 view = component->GetComponentRootView();
186 swiperView = reinterpret_cast<UISwipeView *>(view);
187 if (swiperView->GetCurrentPage() == 0) {
188 printf("ComponentSwiperAttributeSetTest002 pass\n");
189 } else {
190 printf("ComponentSwiperAttributeSetTest002 fail\n");
191 }
192 EXPECT_EQ(swiperView->GetCurrentPage(), 0);
193 component->Release();
194
195 ReleaseJerryValue(indexKey, indexVal, ret1, VA_ARG_END_FLAG);
196
197 TDD_CASE_END();
198 }
199
ComponentSwiperAttributeSetTest003()200 void SwiperTddTest::ComponentSwiperAttributeSetTest003()
201 {
202 TDD_CASE_BEGIN();
203 /**
204 * @tc.steps: step1. set index bool
205 */
206 jerry_value_t indexKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("index"));
207 jerry_value_t indexVal = jerry_create_boolean(true);
208 jerry_value_t ret1 = jerry_set_property(attrsObj_, indexKey, indexVal);
209 Component* component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
210 rootComponentMock_.RenderComponent(*component);
211
212 /**
213 * @tc.steps: step2. get native swiper object
214 */
215 UIView* view = component->GetComponentRootView();
216 UISwipeView* swiperView = reinterpret_cast<UISwipeView *>(view);
217
218 /**
219 * @tc.steps: step3. get index = 0
220 */
221 if (swiperView->GetCurrentPage() == 0) {
222 printf("ComponentSwiperAttributeSetTest003 pass\n");
223 } else {
224 printf("ComponentSwiperAttributeSetTest003 fail\n");
225 }
226 EXPECT_EQ(swiperView->GetCurrentPage(), 0);
227 component->Release();
228
229 ReleaseJerryValue(indexVal, indexKey, ret1, VA_ARG_END_FLAG);
230
231 TDD_CASE_END();
232 }
233
ComponentSwiperAttributeSetTest004()234 void SwiperTddTest::ComponentSwiperAttributeSetTest004()
235 {
236 TDD_CASE_BEGIN();
237 /**
238 * @tc.steps: step1. set index 3
239 */
240 jerry_value_t indexKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("index"));
241 const int val = 3;
242 jerry_value_t indexVal = jerry_create_number(val);
243 jerry_value_t ret1 = jerry_set_property(attrsObj_, indexKey, indexVal);
244 Component* component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
245 rootComponentMock_.RenderComponent(*component);
246
247 /**
248 * @tc.steps: step2. get native swiper object
249 */
250 UIView* view = component->GetComponentRootView();
251 UISwipeView* swiperView = reinterpret_cast<UISwipeView *>(view);
252
253 /**
254 * @tc.steps: step3. get index = 0
255 */
256 if (swiperView->GetCurrentPage() == 0) {
257 printf("ComponentSwiperAttributeSetTest004 pass\n");
258 } else {
259 printf("ComponentSwiperAttributeSetTest004 fail\n");
260 }
261 EXPECT_EQ(swiperView->GetCurrentPage(), 0);
262 component->Release();
263 ReleaseJerryValue(indexVal, ret1, VA_ARG_END_FLAG);
264
265 /**
266 * @tc.steps: step4. set index -1
267 */
268 indexVal = jerry_create_number(-1);
269 ret1 = jerry_set_property(attrsObj_, indexKey, indexVal);
270 component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
271 rootComponentMock_.RenderComponent(*component);
272 view = component->GetComponentRootView();
273 swiperView = reinterpret_cast<UISwipeView *>(view);
274 if (swiperView->GetCurrentPage() == 0) {
275 printf("ComponentSwiperAttributeSetTest004 pass\n");
276 } else {
277 printf("ComponentSwiperAttributeSetTest004 fail\n");
278 }
279 EXPECT_EQ(swiperView->GetCurrentPage(), 0);
280 component->Release();
281
282 ReleaseJerryValue(indexKey, indexVal, ret1, VA_ARG_END_FLAG);
283
284 TDD_CASE_END();
285 }
286
ComponentSwiperAttributeSetTest005()287 void SwiperTddTest::ComponentSwiperAttributeSetTest005()
288 {
289 TDD_CASE_BEGIN();
290 /**
291 * @tc.steps: step1. set index -32769
292 */
293 jerry_value_t indexKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("index"));
294 const int val1 = -32769;
295 jerry_value_t indexVal = jerry_create_number(val1);
296 jerry_value_t ret1 = jerry_set_property(attrsObj_, indexKey, indexVal);
297 Component* component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
298 rootComponentMock_.RenderComponent(*component);
299
300 /**
301 * @tc.steps: step2. get native swiper object
302 */
303 UIView* view = component->GetComponentRootView();
304 UISwipeView* swiperView = reinterpret_cast<UISwipeView *>(view);
305
306 /**
307 * @tc.steps: step3. get index = 0
308 */
309 if (swiperView->GetCurrentPage() == 0) {
310 printf("ComponentSwiperAttributeSetTest005 pass\n");
311 } else {
312 printf("ComponentSwiperAttributeSetTest005 fail\n");
313 }
314 EXPECT_EQ(swiperView->GetCurrentPage(), 0);
315 component->Release();
316 ReleaseJerryValue(indexVal, ret1, VA_ARG_END_FLAG);
317
318 /**
319 * @tc.steps: step4. set index 32768 get index 0
320 */
321 const int val2 = 32768;
322 indexVal = jerry_create_number(val2);
323 ret1 = jerry_set_property(attrsObj_, indexKey, indexVal);
324 component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
325 rootComponentMock_.RenderComponent(*component);
326 view = component->GetComponentRootView();
327 swiperView = reinterpret_cast<UISwipeView *>(view);
328 if (swiperView->GetCurrentPage() == 0) {
329 printf("ComponentSwiperAttributeSetTest005 pass\n");
330 } else {
331 printf("ComponentSwiperAttributeSetTest005 fail\n");
332 }
333 EXPECT_EQ(swiperView->GetCurrentPage(), 0);
334 component->Release();
335
336 ReleaseJerryValue(indexKey, indexVal, ret1, VA_ARG_END_FLAG);
337
338 TDD_CASE_END();
339 }
340
ComponentSwiperAttributeSetTest013()341 void SwiperTddTest::ComponentSwiperAttributeSetTest013()
342 {
343 TDD_CASE_BEGIN();
344 /**
345 * @tc.steps: step1. do not set vertical
346 */
347 Component* component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
348 rootComponentMock_.RenderComponent(*component);
349
350 /**
351 * @tc.steps: step2. get native swiper object
352 */
353 UIView* view = component->GetComponentRootView();
354 UISwipeView* swiperView = reinterpret_cast<UISwipeView *>(view);
355
356 /**
357 * @tc.steps: step3. get direction = 0
358 */
359 if (swiperView->GetDirection() == 0) {
360 printf("ComponentSwiperAttributeSetTest013 pass\n");
361 } else {
362 printf("ComponentSwiperAttributeSetTest013 fail\n");
363 }
364 EXPECT_EQ(swiperView->GetDirection(), 0);
365 component->Release();
366
367 /**
368 * @tc.steps: step4. set vert true get vert 1
369 */
370 jerry_value_t vertKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("vertical"));
371 jerry_value_t vertVal = jerry_create_boolean(true);
372 jerry_value_t ret1 = jerry_set_property(attrsObj_, vertKey, vertVal);
373 component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
374 rootComponentMock_.RenderComponent(*component);
375 view = component->GetComponentRootView();
376 swiperView = reinterpret_cast<UISwipeView *>(view);
377 if (swiperView->GetDirection() == 1) {
378 printf("ComponentSwiperAttributeSetTest013 pass\n");
379 } else {
380 printf("ComponentSwiperAttributeSetTest013 fail\n");
381 }
382 EXPECT_EQ(swiperView->GetDirection(), 1);
383 component->Release();
384 ReleaseJerryValue(vertVal, ret1, VA_ARG_END_FLAG);
385
386 /**
387 * @tc.steps: step5. set vert true get vert 0
388 */
389 vertVal = jerry_create_boolean(false);
390 ret1 = jerry_set_property(attrsObj_, vertKey, vertVal);
391 component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
392 rootComponentMock_.RenderComponent(*component);
393 view = component->GetComponentRootView();
394 swiperView = reinterpret_cast<UISwipeView *>(view);
395 if (swiperView->GetDirection() == 0) {
396 printf("ComponentSwiperAttributeSetTest013 pass\n");
397 } else {
398 printf("ComponentSwiperAttributeSetTest013 fail\n");
399 }
400 EXPECT_EQ(swiperView->GetDirection(), 0);
401 component->Release();
402
403 ReleaseJerryValue(vertKey, vertVal, ret1, VA_ARG_END_FLAG);
404
405 TDD_CASE_END();
406 }
407
ComponentSwiperAttributeSetTest014()408 void SwiperTddTest::ComponentSwiperAttributeSetTest014()
409 {
410 TDD_CASE_BEGIN();
411 /**
412 * @tc.steps: step1. do not set vertical
413 */
414 jerry_value_t vertKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("vertical"));
415 const int val = 100;
416 jerry_value_t vertVal = jerry_create_number(val);
417 jerry_value_t ret1 = jerry_set_property(attrsObj_, vertKey, vertVal);
418 Component* component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
419 rootComponentMock_.RenderComponent(*component);
420
421 /**
422 * @tc.steps: step2. get native swiper object
423 */
424 UIView* view = component->GetComponentRootView();
425 UISwipeView* swiperView = reinterpret_cast<UISwipeView *>(view);
426
427 /**
428 * @tc.steps: step3. get direction = 0
429 */
430 if (swiperView->GetDirection() == 0) {
431 printf("ComponentSwiperAttributeSetTest014 pass\n");
432 } else {
433 printf("ComponentSwiperAttributeSetTest014 fail\n");
434 }
435 EXPECT_EQ(swiperView->GetDirection(), 0);
436 component->Release();
437
438 ReleaseJerryValue(vertKey, vertVal, ret1, VA_ARG_END_FLAG);
439
440 TDD_CASE_END();
441 }
442
ComponentSwiperAttributeSetTest019()443 void SwiperTddTest::ComponentSwiperAttributeSetTest019()
444 {
445 TDD_CASE_BEGIN();
446 /**
447 * @tc.steps: step1. set id,visibility.
448 */
449 jerry_value_t idKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("id"));
450 jerry_value_t idVal = jerry_create_string(reinterpret_cast<const jerry_char_t *>("swiper"));
451 jerry_value_t ret1 = jerry_set_property(attrsObj_, idKey, idVal);
452 jerry_value_t visibilityKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>("show"));
453 jerry_value_t visibilityVal = jerry_create_boolean(false);
454 jerry_value_t ret2 = jerry_set_property(attrsObj_, visibilityKey, visibilityVal);
455 Component* component = ComponentFactory::CreateComponent(componentKeyId_, optionsObj_, childrenObj_);
456 rootComponentMock_.RenderComponent(*component);
457
458 /**
459 * @tc.steps: step2. get native swiper object
460 */
461 UIView* view = component->GetComponentRootView();
462 UISwipeView* swiperView = reinterpret_cast<UISwipeView *>(view);
463
464 /**
465 * @tc.steps: step3. get attribute value
466 */
467 if (!strcmp(swiperView->GetViewId(), "swiper") && swiperView->IsVisible() == false) {
468 printf("ComponentSwiperAttributeSetTest019 pass\n");
469 } else {
470 printf("ComponentSwiperAttributeSetTest019 fail\n");
471 }
472 EXPECT_TRUE((!strcmp(swiperView->GetViewId(), "swiper")) && (swiperView->IsVisible() == false));
473 component->Release();
474
475 ReleaseJerryValue(idKey, idVal, ret1, visibilityKey, visibilityVal, ret2, VA_ARG_END_FLAG);
476
477 TDD_CASE_END();
478 }
479
RunTests()480 void SwiperTddTest::RunTests()
481 {
482 ComponentSwiperAttributeSetTest001();
483 ComponentSwiperAttributeSetTest002();
484 ComponentSwiperAttributeSetTest003();
485 ComponentSwiperAttributeSetTest004();
486 ComponentSwiperAttributeSetTest005();
487 ComponentSwiperAttributeSetTest013();
488 ComponentSwiperAttributeSetTest014();
489 ComponentSwiperAttributeSetTest019();
490 }
491
492 #ifdef TDD_ASSERTIONS
493 /**
494 * @tc.name: ComponentSwiperAttributeSetTest001
495 * @tc.desc: Verify attribute index set normal value.
496 */
497 HWTEST_F(SwiperTddTest, SwiperAttr001, TestSize.Level1)
498 {
499 SwiperTddTest::ComponentSwiperAttributeSetTest001();
500 }
501
502 /**
503 * @tc.name: ComponentSwiperAttributeSetTest002
504 * @tc.desc: Verify attribute index set wrong string value.
505 */
506 HWTEST_F(SwiperTddTest, SwiperAttr002, TestSize.Level1)
507 {
508 SwiperTddTest::ComponentSwiperAttributeSetTest002();
509 }
510
511 /**
512 * @tc.name: ComponentSwiperAttributeSetTest003
513 * @tc.desc: Verify attribute index set bool value.
514 */
515 HWTEST_F(SwiperTddTest, SwiperAttr003, TestSize.Level1)
516 {
517 SwiperTddTest::ComponentSwiperAttributeSetTest003();
518 }
519
520 /**
521 * @tc.name: ComponentSwiperAttributeSetTest004
522 * @tc.desc: Verify attribute index out of size.
523 */
524 HWTEST_F(SwiperTddTest, SwiperAttr004, TestSize.Level1)
525 {
526 SwiperTddTest::ComponentSwiperAttributeSetTest004();
527 }
528
529 /**
530 * @tc.name: ComponentSwiperAttributeSetTest005
531 * @tc.desc: Verify attribute index out of int16.
532 */
533 HWTEST_F(SwiperTddTest, SwiperAttr005, TestSize.Level1)
534 {
535 SwiperTddTest::ComponentSwiperAttributeSetTest005();
536 }
537
538 /**
539 * @tc.name: ComponentSwiperAttributeSetTest013
540 * @tc.desc: Verify attribute vertical set correct.
541 */
542 HWTEST_F(SwiperTddTest, SwiperAttr013, TestSize.Level1)
543 {
544 SwiperTddTest::ComponentSwiperAttributeSetTest013();
545 }
546
547 /**
548 * @tc.name: ComponentSwiperAttributeSetTest014
549 * @tc.desc: Verify attribute vertical input wrong type.
550 */
551 HWTEST_F(SwiperTddTest, SwiperAttr014, TestSize.Level1)
552 {
553 SwiperTddTest::ComponentSwiperAttributeSetTest014();
554 }
555
556 /**
557 * @tc.name: ComponentSwiperAttributeSetTest019
558 * @tc.desc: Verify attribute id,visibility.
559 */
560 HWTEST_F(SwiperTddTest, SwiperAttr019, TestSize.Level1)
561 {
562 SwiperTddTest::ComponentSwiperAttributeSetTest019();
563 }
564 #endif
565 } // ACELite
566 } // OHOS
567