• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
16 #ifndef FOUNDATION_ACE_FRAMEWORKS_BRIDGE_TEST_UNITTEST_JSFRONTEND_DOM_TEST_CONSTANTS_H
17 #define FOUNDATION_ACE_FRAMEWORKS_BRIDGE_TEST_UNITTEST_JSFRONTEND_DOM_TEST_CONSTANTS_H
18 
19 #include <vector>
20 
21 #include "frameworks/bridge/common/dom/dom_type.h"
22 
23 namespace OHOS::Ace::Framework {
24 
25 const std::string CHILD_TAG = "child";
26 const std::string COMMON_EVENT = "commonEvent";
27 const std::string COMMON_STYLE = "commonStyle";
28 const std::string DOM_ATTR = "attr";
29 const std::string DOM_EVENT = "event";
30 const std::string DOM_STYLE = "style";
31 const std::string DOM_TAG = "tag";
32 constexpr int32_t PAGE_ID = 1;
33 
34 // common style list
35 const std::vector<std::string> COMMON_STYLE_LIST = {
36     DOM_WIDTH,
37     DOM_HEIGHT,
38     DOM_PADDING_TOP,
39     DOM_PADDING_RIGHT,
40     DOM_PADDING_BOTTOM,
41     DOM_PADDING_LEFT,
42     DOM_MARGIN_TOP,
43     DOM_MARGIN_RIGHT,
44     DOM_MARGIN_BOTTOM,
45     DOM_MARGIN_LEFT,
46     DOM_BACKGROUND_COLOR,
47     DOM_FLEX_DIRECTION,
48     DOM_FLEX_ROW,
49     DOM_FLEX_COLUMN,
50     DOM_FLEX,
51     DOM_FLEX_GROW,
52     DOM_FLEX_SHRINK,
53     DOM_FLEX_BASIS,
54     DOM_BORDER_TOP_WIDTH,
55     DOM_BORDER_RIGHT_WIDTH,
56     DOM_BORDER_BOTTOM_WIDTH,
57     DOM_BORDER_LEFT_WIDTH,
58     DOM_BORDER_STYLE,
59     DOM_BORDER_TOP_COLOR,
60     DOM_BORDER_RIGHT_COLOR,
61     DOM_BORDER_BOTTOM_COLOR,
62     DOM_BORDER_LEFT_COLOR,
63     DOM_BORDER_TOP_LEFT_RADIUS,
64     DOM_BORDER_TOP_RIGHT_RADIUS,
65     DOM_BORDER_BOTTOM_LEFT_RADIUS,
66     DOM_BORDER_BOTTOM_RIGHT_RADIUS,
67     DOM_BACKGROUND_COLOR,
68     DOM_BACKGROUND_IMAGE,
69     DOM_BACKGROUND_IMAGE_SIZE,
70     DOM_BACKGROUND_IMAGE_POSITION,
71     DOM_BACKGROUND_IMAGE_REPEAT,
72     DOM_FOCUSABLE,
73     DOM_FLEX_WEIGHT,
74     DOM_BOX_SHADOW_H,
75     DOM_BOX_SHADOW_V,
76     DOM_BOX_SHADOW_BLUR,
77     DOM_BOX_SHADOW_SPREAD,
78     DOM_BOX_SHADOW_COLOR,
79     DOM_FILTER,
80     DOM_BACKDROP_FILTER,
81     DOM_TRANSITION_EFFECT,
82     DOM_WINDOW_FILTER,
83     DOM_MASK_IMAGE,
84     DOM_MASK_POSITION,
85     DOM_MASK_SIZE,
86     DOM_TRANSFORM_ORIGIN,
87     DOM_TRANSFORM,
88     DOM_CLIP_PATH,
89 };
90 
91 // common event list
92 const std::vector<std::string> COMMON_EVENT_LIST = {
93     DOM_TOUCH_START,
94     DOM_TOUCH_MOVE,
95     DOM_TOUCH_CANCEL,
96     DOM_TOUCH_END,
97     DOM_CLICK,
98     DOM_LONG_PRESS,
99     DOM_FOCUS,
100     DOM_BLUR,
101     DOM_KEY
102 };
103 
104 // div node style list
105 const std::vector<std::string> DIV_STYLE_LIST = {
106     DOM_DISPLAY,
107     DOM_GRID_TEMPLATE_COLUMNS,
108     DOM_GRID_TEMPLATE_ROWS,
109     DOM_GRID_COLUMN_GAP,
110     DOM_GRID_ROW_GAP,
111     DOM_GRID_COLUMN_START,
112     DOM_GRID_COLUMN_END,
113     DOM_GRID_ROW_START,
114     DOM_GRID_ROW_END,
115     DOM_FLEX_DIRECTION,
116     DOM_JUSTIFY_CONTENT,
117     DOM_ALIGN_ITEMS,
118 };
119 
120 // image node attribute list
121 const std::vector<std::string> IMAGE_ATTR_LIST = {
122     DOM_SRC,
123     DOM_IMAGE_ALT,
124 };
125 
126 // image node style list
127 const std::vector<std::string> IMAGE_STYLE_LIST = {
128     DOM_IMAGE_FIT,
129 };
130 
131 // image node event list
132 const std::vector<std::string> IMAGE_EVENT_LIST = {
133     DOM_ERROR,
134     DOM_COMPLETE,
135 };
136 
137 // imageanimator node attribute list
138 const std::vector<std::string> IMAGE_ANIMATOR_ATTR_LIST = {
139     DOM_IMAGES,
140     DOM_ITERATION,
141     DOM_REVERSE,
142     DOM_FIXEDSIZE,
143 };
144 
145 // text node style list
146 const std::vector<std::string> TEXT_STYLE_LIST = {
147     DOM_TEXT_MAX_LINES,
148     DOM_TEXT_COLOR,
149     DOM_TEXT_LETTER_SPACING,
150     DOM_TEXT_FONT_SIZE,
151     DOM_TEXT_FONT_STYLE,
152     DOM_TEXT_FONT_WEIGHT,
153     DOM_TEXT_DECORATION,
154     DOM_TEXT_ALIGN,
155     DOM_TEXT_LINE_HEIGHT,
156     DOM_TEXT_OVERFLOW,
157     DOM_TEXT_FONT_FAMILY,
158     DOM_TEXT_LINES,
159     DOM_TEXT_MIN_FONT_SIZE,
160     DOM_TEXT_MAX_FONT_SIZE,
161     DOM_TEXT_FONT_SIZE_STEP,
162     DOM_TEXT_PREFER_FONT_SIZES,
163     DOM_TEXT_FONT_VARIANT,
164 };
165 
166 // text node attribute list
167 const std::vector<std::string> TEXT_ATTR_LIST = {
168     DOM_VALUE,
169 };
170 
171 // svg text node attribute list
172 const std::vector<std::string> SVG_TEXT_ATTR_LIST = {
173     DOM_VALUE,
174     DOM_SVG_X,
175     DOM_SVG_Y,
176     DOM_SVG_DX,
177     DOM_SVG_DY,
178     DOM_SVG_ROTATE,
179     DOM_SVG_TEXT_LENGTH,
180     DOM_SVG_LENGTH_ADJUST,
181     DOM_SVG_STROKE,
182     DOM_SVG_STROKE_OPACITY,
183     DOM_SVG_STROKE_WIDTH,
184     DOM_SVG_FONT_SIZE,
185     DOM_SVG_FILL,
186     DOM_SVG_FILL_OPACITY,
187 };
188 
189 // svg textpath node attribute list
190 const std::vector<std::string> SVG_TEXT_PATH_ATTR_LIST = {
191     DOM_VALUE,
192     DOM_SVG_ATTR_PATH,
193     DOM_SVG_START_OFFSET,
194     DOM_SVG_TEXT_LENGTH,
195     DOM_SVG_LENGTH_ADJUST,
196     DOM_SVG_STROKE,
197     DOM_SVG_STROKE_OPACITY,
198     DOM_SVG_STROKE_WIDTH,
199     DOM_SVG_FONT_SIZE,
200     DOM_SVG_FILL,
201     DOM_SVG_FILL_OPACITY,
202 };
203 
204 // svg tspan node attribute list
205 const std::vector<std::string> SVG_TSPAN_ATTR_LIST = {
206     DOM_VALUE,
207     DOM_SVG_X,
208     DOM_SVG_Y,
209     DOM_SVG_DX,
210     DOM_SVG_DY,
211     DOM_SVG_ROTATE,
212     DOM_SVG_TEXT_LENGTH,
213     DOM_SVG_LENGTH_ADJUST,
214     DOM_SVG_STROKE,
215     DOM_SVG_STROKE_OPACITY,
216     DOM_SVG_STROKE_WIDTH,
217     DOM_SVG_FONT_SIZE,
218     DOM_SVG_FILL,
219     DOM_SVG_FILL_OPACITY,
220 };
221 
222 // progress node style and attribute list
223 const std::vector<std::string> PROGRESS_STYLE_LIST = {
224     DOM_PROGRESS_COLOR,
225     DOM_PROGRESS_STROKE_WIDTH,
226 };
227 
228 const std::vector<std::string> PROGRESS_ATTR_LIST = {
229     DOM_PROGRESS_TYPE,
230     DOM_PROGRESS_PERCENT,
231     DOM_PROGRESS_SECONDARY_PERCENT,
232 };
233 
234 // slider node style and attribute list
235 const std::vector<std::string> SLIDER_ATTR_LIST = {
236     DOM_MIN,
237     DOM_MAX,
238     DOM_STEP,
239     DOM_VALUE,
240     DOM_SHOW_TIPS,
241     DOM_SHOW_STEPS,
242     DOM_SLIDER_MODE,
243 };
244 const std::vector<std::string> SLIDER_STYLE_LIST = {
245     DOM_COLOR,
246     DOM_SELECTED_COLOR,
247     DOM_BLOCK_COLOR,
248     DOM_PADDING_LEFT,
249     DOM_PADDING_RIGHT,
250 };
251 const std::vector<std::string> SLIDER_EVENT_LIST = {
252     DOM_CHANGE,
253 };
254 // swiper node style and attribute list
255 const std::vector<std::string> SWIPER_ATTR_LIST = {
256     DOM_INDEX,
257     DOM_AUTOPLAY,
258     DOM_INTERVAL,
259     DOM_INDICATOR,
260     DOM_LOOP,
261     DOM_DURATION,
262     DOM_VERTICAL,
263 };
264 const std::vector<std::string> SWIPER_STYLE_LIST = {
265     DOM_INDICATOR_COLOR,
266     DOM_INDICATOR_SELECTEDCOLOR,
267     DOM_INDICATOR_SIZE,
268     DOM_INDICATOR_TOP,
269     DOM_INDICATOR_LEFT,
270     DOM_INDICATOR_RIGHT,
271     DOM_INDICATOR_BOTTOM,
272 };
273 const std::vector<std::string> SWIPER_EVENT_LIST = {
274     DOM_CHANGE,
275 };
276 
277 // refresh node style and attribute list
278 const std::vector<std::string> REFRESH_ATTR_LIST = {
279     DOM_REFRESH_OFFSET,
280     DOM_REFRESH_REFRESHING,
281     DOM_REFRESH_TYPE,
282     DOM_REFRESH_LASTTIME,
283 };
284 
285 const std::vector<std::string> REFRESH_STYLE_LIST = {
286     DOM_REFRESH_BACKGROUND_COLOR,
287     DOM_REFRESH_PROGRESS_COLOR,
288 };
289 
290 const std::vector<std::string> REFRESH_EVENT_LIST = {
291     DOM_REFRESH,
292 };
293 
294 // switch node attribute, style and event list
295 const std::vector<std::string> SWITCH_ATTR_LIST = {
296     DOM_CHECKED,
297     DOM_DISABLED,
298     DOM_SHOW_TEXT,
299     DOM_TEXT_ON,
300     DOM_TEXT_OFF,
301 };
302 const std::vector<std::string> SWITCH_STYLE_LIST = {
303     DOM_TEXT_FONT_SIZE,
304     DOM_TEXT_FONT_WEIGHT,
305     DOM_TEXT_FONT_FAMILY,
306     DOM_TEXT_DECORATION,
307     DOM_TEXT_LETTER_SPACING,
308     DOM_TEXT_FONT_STYLE,
309     DOM_TEXT_PADDING,
310     DOM_TEXT_ON_COLOR,
311     DOM_TEXT_OFF_COLOR,
312     DOM_TRACK_COLOR_ON,
313     DOM_TRACK_COLOR_OFF,
314 };
315 const std::vector<std::string> SWITCH_EVENT_LIST = {
316     DOM_CHANGE
317 };
318 
319 // span node style list
320 const std::vector<std::string> SPAN_STYLE_LIST = {
321     DOM_TEXT_COLOR,
322     DOM_TEXT_FONT_SIZE,
323     DOM_TEXT_FONT_STYLE,
324     DOM_TEXT_FONT_WEIGHT,
325     DOM_TEXT_DECORATION,
326     DOM_TEXT_FONT_FAMILY,
327     DOM_TEXT_FONT_VARIANT,
328 };
329 
330 // span node attribute list
331 const std::vector<std::string> SPAN_ATTR_LIST = {
332     DOM_VALUE,
333 };
334 
335 // popup node attribute list
336 const std::vector<std::string> POPUP_ATTR_LIST = {
337     DOM_TARGET,
338     DOM_PLACEMENT,
339 };
340 
341 // popup node style list
342 const std::vector<std::string> POPUP_STYLE_LIST = {
343     DOM_MASK_COLOR,
344 };
345 
346 // popup node event list
347 const std::vector<std::string> POPUP_EVENT_LIST = {
348     DOM_VISIBILITY_CHANGE,
349 };
350 
351 // list node attribute list
352 const std::vector<std::string> LIST_ATTR_LIST = {
353     DOM_SCROLL_EFFECT,
354     DOM_SCROLL_SCROLLBAR,
355     DOM_SCROLL_SHAPE_MODE,
356     DOM_LIST_UPDATE_EFFECT,
357 };
358 
359 // list node style list
360 const std::vector<std::string> LIST_STYLE_LIST = {
361     DOM_FADE_COLOR,
362     DOM_LIST_ITEM_EXTENT,
363 };
364 
365 // tabs node attribute list
366 const std::vector<std::string> TABS_ATTR_LIST = {
367     TAB_INDEX,
368     TAB_IS_VERTICAL,
369 };
370 
371 // tab-bar node attribute list
372 const std::vector<std::string> TABBAR_ATTR_LIST = {
373     DOM_TAB_BAR_MODE,
374 };
375 
376 // tab-content node attribute list
377 const std::vector<std::string> TABCONTENT_ATTR_LIST = {
378     DOM_TAB_CONTENT_SCROLLABLE,
379 };
380 
381 // video node attribute, style and event list
382 const std::vector<std::string> VIDEO_ATTR_LIST = {
383     DOM_VIDEO_MUTED,
384     DOM_VIDEO_SRC,
385     DOM_VIDEO_AUTOPLAY,
386     DOM_VIDEO_POSTER,
387     DOM_VIDEO_CONTROLS,
388 };
389 const std::vector<std::string> VIDEO_STYLE_LIST = {
390     DOM_VIDEO_FIT,
391 };
392 const std::vector<std::string> VIDEO_EVENT_LIST = {
393     DOM_VIDEO_EVENT_PREPARED,
394     DOM_VIDEO_EVENT_START,
395     DOM_VIDEO_EVENT_PAUSE,
396     DOM_VIDEO_EVENT_FINISH,
397     DOM_VIDEO_EVENT_ERROR,
398     DOM_VIDEO_EVENT_SEEKING,
399     DOM_VIDEO_EVENT_SEEKED,
400     DOM_VIDEO_EVENT_TIMEUPDATE,
401     DOM_VIDEO_EVENT_FULLSCREENCHANGE,
402 };
403 const std::vector<std::string> RATING_ATTR_LIST = {
404     DOM_STAR_NUM,
405     DOM_RATING_SCORE,
406     DOM_RATING_STEP,
407     DOM_RATING_INDICATOR,
408 };
409 const std::vector<std::string> RATING_STYLE_LIST = {
410     DOM_BACKGROUND_SRC,
411     DOM_FOREGROUND_SRC,
412     DOM_SECONDARY_SRC,
413     DOM_WIDTH,
414     DOM_HEIGHT,
415 };
416 const std::vector<std::string> RATING_EVENT_LIST = {
417     DOM_CHANGE,
418 };
419 
420 // marquee node attribute, style and event list
421 const std::vector<std::string> MARQUEE_ATTR_LIST = {
422     DOM_MARQUEE_VALUE,
423     DOM_MARQUEE_LOOP,
424     DOM_MARQUEE_SCROLL_AMOUNT,
425     DOM_MARQUEE_DIRECTION,
426 };
427 const std::vector<std::string> MARQUEE_STYLE_LIST = {
428     DOM_MARQUEE_COLOR,
429     DOM_MARQUEE_FONT_SIZE,
430     DOM_MARQUEE_FONT_WEIGHT,
431     DOM_MARQUEE_FONT_FAMILY,
432 };
433 const std::vector<std::string> MARQUEE_EVENT_LIST = {
434     DOM_MARQUEE_EVENT_BOUNCE,
435     DOM_MARQUEE_EVENT_FINISH,
436     DOM_MARQUEE_EVENT_START,
437 };
438 
439 // textarea node style list
440 const std::vector<std::string> TEXTAREA_STYLE_LIST = {
441     DOM_TEXTAREA_COLOR,
442     DOM_TEXTAREA_FONT_SIZE,
443     DOM_TEXTAREA_FONT_WEIGHT,
444     DOM_TEXTAREA_PLACEHOLDER_COLOR,
445     DOM_CARET_COLOR,
446     DOM_TEXTAREA_FONT_FAMILY,
447     DOM_TEXTAREA_CURSOR_COLOR,
448 };
449 
450 // textarea node attribute list
451 const std::vector<std::string> TEXTAREA_ATTR_LIST = {
452     DOM_DISABLED,
453     DOM_TEXTAREA_OBSCURE,
454     DOM_TEXTAREA_VALUE,
455     DOM_TEXTAREA_PLACEHOLDER,
456     DOM_TEXTAREA_MAXLENGTH,
457     DOM_TEXTAREA_MAXLINES,
458     DOM_TEXTAREA_OBSCURE,
459     DOM_TEXTAREA_EXTEND,
460     DOM_ICON_SRC,
461     DOM_INPUT_SELECTED_START,
462     DOM_INPUT_SELECTED_END,
463     DOM_INPUT_SOFT_KEYBOARD_ENABLED,
464 };
465 
466 // textarea node event list
467 const std::vector<std::string> TEXTAREA_EVENT_LIST = {
468     DOM_CHANGE,
469 };
470 
471 // input node style list
472 const std::vector<std::string> INPUT_STYLE_LIST = {
473     DOM_INPUT_COLOR,
474     DOM_INPUT_FONT_SIZE,
475     DOM_INPUT_FONT_WEIGHT,
476     DOM_INPUT_CURSOR_COLOR,
477     DOM_INPUT_PLACEHOLDER_COLOR,
478     DOM_INPUT_WIDTH,
479     DOM_INPUT_HEIGHT,
480     DOM_INPUT_FONT_FAMILY,
481     DOM_INPUT_RECT_RADIUS,
482     DOM_INPUT_BACKGROUND_COLOR,
483     DOM_INPUT_CLICKED_COLOR,
484     DOM_INPUT_DISABLE_COLOR,
485     DOM_INPUT_FOCUS_COLOR,
486 };
487 
488 // input node attribute list
489 const std::vector<std::string> INPUT_ATTR_LIST = {
490     DOM_DISABLED,
491     DOM_INPUT_TYPE,
492     DOM_INPUT_CHECKED,
493     DOM_INPUT_NAME,
494     DOM_INPUT_VALUE,
495     DOM_INPUT_PLACEHOLDER,
496     DOM_INPUT_MAXLENGTH,
497     DOM_INPUT_ENTERKEYTYPE,
498     DOM_INPUT_OBSCURE,
499     DOM_INPUT_AUTO_FOCUS,
500     DOM_ICON_SRC,
501 };
502 
503 // input node event list
504 const std::vector<std::string> INPUT_EVENT_LIST = {
505     DOM_CHANGE,
506     DOM_CLICK,
507     DOM_FOCUS,
508     DOM_INPUT_EVENT_NAME,
509     DOM_INPUT_EVENT_VALUE,
510     DOM_INPUT_EVENT_CHECKED,
511     DOM_INPUT_EVENT_ENTERKEYCLICK,
512 };
513 
514 // label node attribute list
515 const std::vector<std::string> LABEL_ATTR_LIST = {
516     DOM_VALUE,
517     DOM_TARGET,
518 };
519 
520 // input node style list
521 const std::vector<std::string> DIVIDER_STYLE_LIST = {
522     DOM_DIVIDER_STROKE_WIDTH,
523     DIVIDER_COLOR,
524     DOM_DIVIDER_LINE_CAP,
525 };
526 
527 // input node attribute list
528 const std::vector<std::string> DIVIDER_ATTR_LIST = {
529     DOM_DIVIDER_VERTICAL,
530 };
531 
532 // button node attribute list
533 const std::vector<std::string> BUTTON_ATTR_LIST = {
534     DOM_DISABLED,
535     DOM_BUTTON_TYPE,
536     DOM_BUTTON_WAITING,
537     DOM_BUTTON_AUTO_FOCUS,
538     DOM_BUTTON_TEXT_DATA,
539     DOM_BUTTON_ICON,
540 };
541 
542 // button node style list
543 const std::vector<std::string> BUTTON_STYLE_LIST = {
544     DOM_BUTTON_MIN_WIDTH,
545     DOM_BUTTON_WIDTH,
546     DOM_BUTTON_HEIGHT,
547     DOM_BUTTON_TEXT_COLOR,
548     DOM_BUTTON_FONT_SIZE,
549     DOM_BUTTON_FONT_WEIGHT,
550     DOM_BUTTON_FONT_FAMILY,
551     DOM_BUTTON_RRECT_RADIUS,
552     DOM_BUTTON_DEFAULT_COLOR,
553     DOM_BUTTON_CLICKED_COLOR,
554     DOM_BUTTON_DISABLE_COLOR,
555     DOM_BUTTON_FOCUS_COLOR,
556     BUTTON_SHADOW,
557     DOM_BUTTON_BORDER_WIDTH,
558     DOM_BUTTON_BORDER_COLOR,
559     DOM_BUTTON_PROGRESS_DIAMETER,
560     DOM_BUTTON_PROGRESS_COLOR,
561     DOM_BUTTON_INNER_PADDING,
562 };
563 
564 const std::vector<std::string> SEARCH_ATTR_LIST = {
565     DOM_SEARCH_ICON,
566     DOM_SEARCH_HINT,
567     DOM_SEARCH_VALUE,
568     DOM_INPUT_SELECTED_START,
569     DOM_INPUT_SELECTED_END,
570     DOM_INPUT_SOFT_KEYBOARD_ENABLED,
571 };
572 
573 const std::vector<std::string> SEARCH_STYLE_LIST = {
574     DOM_TEXT_FONT_SIZE,
575     DOM_TEXT_FONT_WEIGHT,
576     DOM_TEXT_FONT_FAMILY,
577     DOM_COLOR,
578     DOM_INPUT_PLACEHOLDER_COLOR,
579     DOM_CARET_COLOR,
580     DOM_PADDING_LEFT,
581     DOM_PADDING_TOP,
582     DOM_PADDING_RIGHT,
583     DOM_PADDING_BOTTOM,
584     DOM_PADDING_START,
585     DOM_PADDING_END,
586     DOM_BACKGROUND_COLOR,
587 };
588 
589 const std::vector<std::string> SEARCH_EVENT_LIST = {
590     DOM_CHANGE,
591     DOM_SUBMIT
592 };
593 
594 // piece node attribute list
595 const std::vector<std::string> PIECE_ATTR_LIST = {
596     DOM_PIECE_CONTENT,
597     DOM_PIECE_CLOSABLE,
598     DOM_PIECE_ICON,
599 };
600 
601 // piece node event list
602 const std::vector<std::string> PIECE_EVENT_LIST = {
603     DOM_PIECE_EVENT_CLOSE,
604 };
605 
606 const std::vector<std::string> DIV_ATTR_LIST = {
607     DOM_CLICK_EFFECT,
608 };
609 
610 // svg node attribute list
611 const std::vector<std::string> SVG_ATTR_LIST = {
612     DOM_SVG_VIEW_BOX,
613     DOM_SVG_X,
614     DOM_SVG_Y,
615     DOM_SVG_WIDTH,
616     DOM_SVG_HEIGHT,
617     DOM_SVG_FILL,
618     DOM_SVG_FILL_OPACITY,
619     DOM_SVG_STROKE,
620     DOM_SVG_STROKE_DASHARRAY,
621     DOM_SVG_STROKE_DASHOFFSET,
622     DOM_SVG_STROKE_LINECAP,
623     DOM_SVG_STROKE_LINEJOIN,
624     DOM_SVG_STROKE_MITERLIMIT,
625     DOM_SVG_STROKE_OPACITY,
626     DOM_SVG_STROKE_WIDTH,
627     DOM_SVG_OPACITY,
628 };
629 
630 const std::vector<std::string> SVG_RECT_ATTR_LIST = {
631     DOM_SVG_X,
632     DOM_SVG_Y,
633     DOM_SVG_WIDTH,
634     DOM_SVG_HEIGHT,
635     DOM_SVG_RX,
636     DOM_SVG_RY,
637     DOM_SVG_FILL,
638     DOM_SVG_FILL_OPACITY,
639     DOM_SVG_STROKE,
640     DOM_SVG_STROKE_DASHARRAY,
641     DOM_SVG_STROKE_DASHOFFSET,
642     DOM_SVG_STROKE_LINECAP,
643     DOM_SVG_STROKE_LINEJOIN,
644     DOM_SVG_STROKE_MITERLIMIT,
645     DOM_SVG_STROKE_OPACITY,
646     DOM_SVG_STROKE_WIDTH,
647     DOM_SVG_OPACITY,
648 };
649 
650 const std::vector<std::string> SVG_CIRCLE_ATTR_LIST = {
651     DOM_SVG_CX,
652     DOM_SVG_CY,
653     DOM_SVG_R,
654     DOM_SVG_FILL,
655     DOM_SVG_FILL_OPACITY,
656     DOM_SVG_STROKE,
657     DOM_SVG_STROKE_DASHARRAY,
658     DOM_SVG_STROKE_DASHOFFSET,
659     DOM_SVG_STROKE_LINECAP,
660     DOM_SVG_STROKE_LINEJOIN,
661     DOM_SVG_STROKE_MITERLIMIT,
662     DOM_SVG_STROKE_OPACITY,
663     DOM_SVG_STROKE_WIDTH,
664     DOM_SVG_OPACITY,
665 };
666 
667 const std::vector<std::string> SVG_ELLIPSE_ATTR_LIST = {
668     DOM_SVG_CX,
669     DOM_SVG_CY,
670     DOM_SVG_RX,
671     DOM_SVG_RY,
672     DOM_SVG_FILL,
673     DOM_SVG_FILL_OPACITY,
674     DOM_SVG_STROKE,
675     DOM_SVG_STROKE_DASHARRAY,
676     DOM_SVG_STROKE_DASHOFFSET,
677     DOM_SVG_STROKE_LINECAP,
678     DOM_SVG_STROKE_LINEJOIN,
679     DOM_SVG_STROKE_MITERLIMIT,
680     DOM_SVG_STROKE_OPACITY,
681     DOM_SVG_STROKE_WIDTH,
682     DOM_SVG_OPACITY,
683 };
684 
685 const std::vector<std::string> SVG_PATH_ATTR_LIST = {
686     DOM_SVG_D,
687     DOM_SVG_FILL,
688     DOM_SVG_FILL_OPACITY,
689     DOM_SVG_STROKE,
690     DOM_SVG_STROKE_DASHARRAY,
691     DOM_SVG_STROKE_DASHOFFSET,
692     DOM_SVG_STROKE_LINECAP,
693     DOM_SVG_STROKE_LINEJOIN,
694     DOM_SVG_STROKE_MITERLIMIT,
695     DOM_SVG_STROKE_OPACITY,
696     DOM_SVG_STROKE_WIDTH,
697     DOM_SVG_OPACITY,
698 };
699 
700 const std::vector<std::string> SVG_LINE_ATTR_LIST = {
701     DOM_SVG_X1,
702     DOM_SVG_X2,
703     DOM_SVG_Y1,
704     DOM_SVG_Y2,
705     DOM_SVG_FILL,
706     DOM_SVG_FILL_OPACITY,
707     DOM_SVG_STROKE,
708     DOM_SVG_STROKE_DASHARRAY,
709     DOM_SVG_STROKE_DASHOFFSET,
710     DOM_SVG_STROKE_LINECAP,
711     DOM_SVG_STROKE_LINEJOIN,
712     DOM_SVG_STROKE_MITERLIMIT,
713     DOM_SVG_STROKE_OPACITY,
714     DOM_SVG_STROKE_WIDTH,
715     DOM_SVG_OPACITY,
716 };
717 
718 const std::vector<std::string> SVG_POLYLINE_ATTR_LIST = {
719     DOM_SVG_POINTS,
720     DOM_SVG_FILL,
721     DOM_SVG_FILL_OPACITY,
722     DOM_SVG_STROKE,
723     DOM_SVG_STROKE_DASHARRAY,
724     DOM_SVG_STROKE_DASHOFFSET,
725     DOM_SVG_STROKE_LINECAP,
726     DOM_SVG_STROKE_LINEJOIN,
727     DOM_SVG_STROKE_MITERLIMIT,
728     DOM_SVG_STROKE_OPACITY,
729     DOM_SVG_STROKE_WIDTH,
730     DOM_SVG_OPACITY,
731 };
732 
733 const std::vector<std::string> SVG_POLYGON_ATTR_LIST = {
734     DOM_SVG_POINTS,
735     DOM_SVG_FILL,
736     DOM_SVG_FILL_OPACITY,
737     DOM_SVG_STROKE,
738     DOM_SVG_STROKE_DASHARRAY,
739     DOM_SVG_STROKE_DASHOFFSET,
740     DOM_SVG_STROKE_LINECAP,
741     DOM_SVG_STROKE_LINEJOIN,
742     DOM_SVG_STROKE_MITERLIMIT,
743     DOM_SVG_STROKE_OPACITY,
744     DOM_SVG_STROKE_WIDTH,
745     DOM_SVG_OPACITY,
746 };
747 
748 const std::vector<std::string> SVG_ANIMATE_ATTR_LIST = {
749     DOM_SVG_ANIMATION_BEGIN,
750     DOM_SVG_ANIMATION_DUR,
751     DOM_SVG_ANIMATION_END,
752     DOM_SVG_ANIMATION_REPEAT_COUNT,
753     DOM_SVG_ANIMATION_FILL,
754     DOM_SVG_ANIMATION_CALC_MODE,
755     DOM_SVG_ANIMATION_VALUES,
756     DOM_SVG_ANIMATION_KEY_TIMES,
757     DOM_SVG_ANIMATION_KEY_SPLINES,
758     DOM_SVG_ANIMATION_FROM,
759     DOM_SVG_ANIMATION_TO,
760     DOM_SVG_ANIMATION_ATTRIBUTE_NAME,
761 };
762 
763 const std::vector<std::string> SVG_ANIMATE_MOTION_ATTR_LIST = {
764     DOM_SVG_ANIMATION_BEGIN,
765     DOM_SVG_ANIMATION_DUR,
766     DOM_SVG_ANIMATION_END,
767     DOM_SVG_ANIMATION_REPEAT_COUNT,
768     DOM_SVG_ANIMATION_FILL,
769     DOM_SVG_ANIMATION_CALC_MODE,
770     DOM_SVG_ANIMATION_KEY_TIMES,
771     DOM_SVG_ANIMATION_KEY_SPLINES,
772     DOM_SVG_ANIMATION_KEY_POINTS,
773     DOM_SVG_ANIMATION_PATH,
774     DOM_SVG_ANIMATION_ROTATE,
775 };
776 
777 } // namespace OHOS::Ace::Framework
778 
779 #endif // FOUNDATION_ACE_FRAMEWORKS_BRIDGE_TEST_UNITTEST_JSFRONTEND_DOM_TEST_CONSTANTS_H
780