Support parsing multiplatform tests

commit_hash:30c0f59f613adf7914f390c20f751136e7b34b75
This commit is contained in:
grechka62
2026-04-29 15:32:34 +03:00
parent 1d14f691f1
commit cf1e5515ff
28 changed files with 272 additions and 23 deletions
@@ -1,5 +1,11 @@
{
"description": "Invalid item in array (transition_triggers) is ignored",
"platforms": [
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
@@ -1,5 +1,12 @@
{
"description": "Integer value in boolean_int property (div-text.auto_ellipsize)",
"platforms": [
"android",
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
@@ -1,5 +1,12 @@
{
"description": "Integer value in string property is not valid (div-text.text)",
"platforms": [
"android",
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
@@ -1,5 +1,11 @@
{
"description": "Invalid integer value in boolean_int property (div-text.auto_ellipsize)",
"platforms": [
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
@@ -1,5 +1,11 @@
{
"description": "Invalid number value in boolean_int property (div-text.auto_ellipsize)",
"platforms": [
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
@@ -1,5 +1,12 @@
{
"description": "Number value in boolean_int property (div-text.auto_ellipsize)",
"platforms": [
"android",
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
@@ -1,5 +1,12 @@
{
"description": "Number value in integer property (div-text.font_size)",
"platforms": [
"android",
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
@@ -1,5 +1,12 @@
{
"description": "Number value in string property is not valid (div-text.text)",
"platforms": [
"android",
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
@@ -1,5 +1,11 @@
{
"description": "String value in boolean_int property (div-text.auto_ellipsize)",
"platforms": [
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
+9 -4
View File
@@ -1,5 +1,12 @@
{
"description": "All properties with expressions are parsed correctly",
"platforms": [
"android",
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
@@ -14,8 +21,7 @@
"text_color": "@{text_color}",
"actions": [
{
"log_id": "test_action",
"params": "@{action_params}"
"log_id": "@{action_log_id}"
}
]
}
@@ -37,8 +43,7 @@
"text_color": "@{text_color}",
"actions": [
{
"log_id": "test_action",
"params": "@{action_params}"
"log_id": "@{action_log_id}"
}
]
}
@@ -1,5 +1,12 @@
{
"description": "Invalid value replaced with default value",
"platforms": [
"android",
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
@@ -1,5 +1,12 @@
{
"description": "Object with missing required property (div-action.log_id) is ignored",
"platforms": [
"android",
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
+14 -7
View File
@@ -1,5 +1,12 @@
{
"description": "All values are parsed corectly",
"description": "All values are parsed correctly",
"platforms": [
"android",
"ios"
],
"unsupported_platforms": {
"web": "There is no \"parsing\" process on the web"
},
"card": {
"log_id": "test",
"states": [
@@ -12,15 +19,15 @@
{
"type": "gradient",
"colors": [
"#112233",
"#332211"
"#FF112233",
"#FF332211"
]
}
],
"font_weight": "bold",
"font_size": 20,
"text": "Hello!",
"text_color": "#AABBCC",
"text_color": "#FFAABBCC",
"transition_triggers": [
"data_change",
"state_change"
@@ -42,15 +49,15 @@
{
"type": "gradient",
"colors": [
"#112233",
"#332211"
"#FF112233",
"#FF332211"
]
}
],
"font_weight": "bold",
"font_size": 20,
"text": "Hello!",
"text_color": "#AABBCC",
"text_color": "#FFAABBCC",
"transition_triggers": [
"data_change",
"state_change"
@@ -1,5 +1,9 @@
{
"description": "A derived template inherits a parent template whose body contains reference definitions inside nested structures. Verifies that inherited references from the parent and the derived template's own references all resolve against the usage's reference values.",
"platforms": [
"ios",
"web"
],
"templates": {
"base_text": {
"type": "text",
@@ -27,14 +27,14 @@
"state_id": 0,
"div": {
"type": "root",
"background_color": "#F00",
"background_color": "#FFFF0000",
"items": [
{
"type": "container",
"items": [
{
"type": "button",
"background_color": "#0f0",
"background_color": "#FF00FF00",
"text": "SAMPLE"
}
]
@@ -55,7 +55,7 @@
"background": [
{
"type": "solid",
"color": "#F00"
"color": "#FFFF0000"
}
],
"items": [
@@ -67,7 +67,7 @@
"background": [
{
"type": "solid",
"color": "#0f0"
"color": "#FF00FF00"
}
],
"text": "SAMPLE"
@@ -1,5 +1,9 @@
{
"description": "A template usage inside another template's body declares a reference definition whose source name matches a field on the card instance. Verifies that the reference value on the outer instance cascades through two levels of template usage to drive the inner template's field.",
"platforms": [
"ios",
"web"
],
"templates": {
"inner_template": {
"type": "image",
@@ -1,5 +1,9 @@
{
"description": "A reference definition lives inside a plain (non-template) nested dict embedded in a template's body — an element of an 'images' array. Verifies the reference still resolves against the outer instance despite the intermediate plain-dict layers.",
"platforms": [
"ios",
"web"
],
"card": {
"log_id": "test",
"states": [
@@ -1,5 +1,9 @@
{
"description": "A single template definition reuses the same reference source name ('content') at two depths: a top-level $text and a nested $log_id inside actions[]. Verifies both sites receive the same value from the usage's reference value.",
"platforms": [
"ios",
"web"
],
"templates": {
"action_text": {
"type": "text",
@@ -1,5 +1,9 @@
{
"description": "A reference definition points to a source name the usage does not provide, for an optional field. Verifies an unresolved reference on an optional field is silently ignored.",
"platforms": [
"ios",
"web"
],
"templates": {
"styled_text": {
"type": "text",
@@ -1,5 +1,9 @@
{
"description": "A template definition declares reference definitions at multiple depths: top-level ($text), inside a nested object ($top in paddings), and inside an array element ($url in actions[]). Verifies all references resolve against the usage's reference values.",
"platforms": [
"ios",
"web"
],
"templates": {
"title": {
"type": "text",