Files
divkit/test_data/regression_test_data/states_default_state.json
T
edubinskaya e46db6f1f0 update regression for internal usages
new regression label

new regression cards
2022-09-06 15:46:07 +03:00

94 lines
2.1 KiB
JSON

{
"templates": {
"button": {
"type": "text",
"width": {
"type": "match_parent"
},
"height": {
"type": "wrap_content"
},
"paddings": {
"left": 16,
"top": 16,
"right": 16,
"bottom": 16
},
"margins": {
"top": 16,
"bottom": 16,
"left": 16,
"right": 16
},
"border": {
"corner_radius": 8
},
"background": [
{
"type": "solid",
"color": "#0E000000"
}
],
"font_size": 16,
"font_weight": "medium",
"text_alignment_vertical": "center",
"text_alignment_horizontal": "center",
"text_color": "#000000",
"alpha": 1.0,
"alignment_horizontal": "center",
"alignment_vertical": "center"
}
},
"card": {
"log_id": "card",
"states": [
{
"state_id": 0,
"div": {
"type": "state",
"width": {
"type": "match_parent"
},
"height": {
"type": "match_parent"
},
"content_alignment_vertical": "center",
"div_id": "state_container",
"default_state_id": "default",
"states": [
{
"state_id": "nondefaut",
"div": {
"type": "button",
"text": "Nondefault state",
"actions": [
{
"log_id": "default state",
"url": "div-action://set_state?state_id=0/state_container/default"
}
]
}
},
{
"state_id": "default",
"div": {
"type": "button",
"text": "Default state",
"actions": [
{
"log_id": "nondefault state",
"url": "div-action://set_state?state_id=0/state_container/nondefaut"
}
]
}
},
{
"state_id": "empty"
}
]
}
}
]
}
}