mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
201be941c9
commit_hash:fd6e36a8ea96d96b9a00bac60a72f213c5f2dc0e
71 lines
1.4 KiB
JSON
71 lines
1.4 KiB
JSON
{
|
|
"description": "Image with different blur radii and without blur",
|
|
"platforms": [
|
|
"android",
|
|
"web"
|
|
],
|
|
"div_data": {
|
|
"card": {
|
|
"log_id": "tests",
|
|
"variables": [
|
|
{
|
|
"name": "blur",
|
|
"type": "integer",
|
|
"value": 4
|
|
}
|
|
],
|
|
"states": [
|
|
{
|
|
"state_id": 0,
|
|
"div": {
|
|
"type": "image",
|
|
"image_url": "https://yastatic.net/s3/home/divkit/chess.png",
|
|
"filters": [
|
|
{
|
|
"type": "blur",
|
|
"radius": "@{blur}"
|
|
}
|
|
],
|
|
"width": {
|
|
"type": "match_parent"
|
|
},
|
|
"aspect": {
|
|
"ratio": 1
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"steps": [
|
|
{
|
|
"expected_screenshot": "step0.png"
|
|
},
|
|
{
|
|
"div_actions": [
|
|
{
|
|
"url": "div-action://set_variable?name=blur&value=0",
|
|
"log_id": "blur: 0"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"div_actions": [
|
|
{
|
|
"url": "div-action://set_variable?name=blur&value=30",
|
|
"log_id": "blur: 30"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"div_actions": [
|
|
{
|
|
"url": "div-action://set_variable?name=blur&value=4",
|
|
"log_id": "blur: 4"
|
|
}
|
|
],
|
|
"expected_screenshot": "step0.png"
|
|
}
|
|
]
|
|
}
|