mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
83 lines
1.8 KiB
JSON
83 lines
1.8 KiB
JSON
{
|
|
"description": "Input with different underline color in Android",
|
|
"platforms": [
|
|
"android",
|
|
"ios",
|
|
"web"
|
|
],
|
|
"div_data": {
|
|
"card": {
|
|
"log_id": "tests",
|
|
"variables": [
|
|
{
|
|
"name": "input_value",
|
|
"type": "string",
|
|
"value": "initial_text"
|
|
},
|
|
{
|
|
"name": "underline_color",
|
|
"type": "color",
|
|
"value": "#0000FF"
|
|
}
|
|
],
|
|
"states": [
|
|
{
|
|
"state_id": 0,
|
|
"div": {
|
|
"type": "input",
|
|
"width": {
|
|
"type": "match_parent"
|
|
},
|
|
"height": {
|
|
"type": "wrap_content"
|
|
},
|
|
"paddings": {
|
|
"left": 16,
|
|
"top": 16,
|
|
"right": 16,
|
|
"bottom": 16
|
|
},
|
|
"margins": {
|
|
"left": 16,
|
|
"top": 16,
|
|
"right": 16,
|
|
"bottom": 16
|
|
},
|
|
"alignment_horizontal": "center",
|
|
"alignment_vertical": "center",
|
|
"text_variable": "input_value",
|
|
"font_size": 20,
|
|
"text_color": "#444444",
|
|
"highlight_color": "#CCCCFF",
|
|
"native_interface": {
|
|
"color": "@{underline_color}"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"steps": [
|
|
{
|
|
"expected_screenshot": "step0.png"
|
|
},
|
|
{
|
|
"div_actions": [
|
|
{
|
|
"url": "div-action://set_variable?name=underline_color&value=%23FF0000",
|
|
"log_id": "underline_color"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"div_actions": [
|
|
{
|
|
"url": "div-action://set_variable?name=underline_color&value=%230000FF",
|
|
"log_id": "underline_color"
|
|
}
|
|
],
|
|
"expected_screenshot": "step0.png"
|
|
}
|
|
]
|
|
}
|