mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
parsing tests
commit_hash:72c5665e8ea78584437a239df3ae94bdb87e2c09
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
{
|
||||
"description": "A template definition declares both a literal value and a reference definition for the same field. Verifies the literal wins — the reference substitution is skipped when the field is already populated — even when the usage supplies a reference value.",
|
||||
"platforms": [
|
||||
"android",
|
||||
"ios"
|
||||
],
|
||||
"templates": {
|
||||
"conflicted": {
|
||||
"type": "text",
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{
|
||||
"description": "A reference declared on the leaf template resolves against a reference value declared at two levels: a default on the usage site inside an intermediate template's body, and a card-level override on the outer instance. Verifies the card-level value cascades down through template-body content and overrides the intermediate body's default.",
|
||||
"platforms": [
|
||||
"android",
|
||||
"ios"
|
||||
],
|
||||
"card": {
|
||||
"log_id": "test",
|
||||
"states": [
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{
|
||||
"description": "A two-hop reference chain via nested usage: a template usage inside another template's body declares its own reference definition that points to a card field, while the used template has its own reference definition for a different field (with a literal default). Verifies the two-hop chain does not propagate and the affected item is dropped with an error.",
|
||||
"platforms": [
|
||||
"android",
|
||||
"ios"
|
||||
],
|
||||
"templates": {
|
||||
"base_text": {
|
||||
"type": "text",
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{
|
||||
"description": "A template usage inside another template's body declares its own reference definition that points to a field on the outer instance, and the used template has its own reference definition for the same slot. Verifies that a two-hop reference chain (instance field → usage reference → definition reference) does not propagate: only the single-hop sibling resolves, the chained item is dropped with an error.",
|
||||
"platforms": [
|
||||
"android",
|
||||
"ios"
|
||||
],
|
||||
"templates": {
|
||||
"header": {
|
||||
"type": "text",
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{
|
||||
"description": "Not a template test — verifies that an invalid field value (div-text.font_size = -1) is replaced by the field's default and reported as an error.",
|
||||
"platforms": [
|
||||
"android",
|
||||
"ios"
|
||||
],
|
||||
"card": {
|
||||
"log_id": "test",
|
||||
"states": [
|
||||
|
||||
Reference in New Issue
Block a user