Skip to content

Commit 8be747e

Browse files
committed
Split fixture file
1 parent 87e931a commit 8be747e

8 files changed

+91
-96
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- wp:form {"className":"custom-class","style":{"elements":{"link":{"color":{"text":"#ff0000"}}},"color":{"text":"#ff0000","background":"#00ffff"},"typography":{"fontSize":"30px"},"spacing":{"padding":{"top":"1px","bottom":"1px","left":"2px","right":"2px"},"margin":{"top":"3px","bottom":"3px","left":"4px","right":"4px"}}}} -->
2+
<form id="anchor" class="wp-block-form" style="color:#ff0000;background-color:#00ffff;margin-top:3px;margin-right:4px;margin-bottom:3px;margin-left:4px;padding-top:1px;padding-right:2px;padding-bottom:1px;padding-left:2px;font-size:30px" enctype="text/plain"></form>
3+
<!-- /wp:form -->
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[
2+
{
3+
"name": "core/form",
4+
"isValid": true,
5+
"attributes": {
6+
"submissionMethod": "email",
7+
"method": "post",
8+
"anchor": "anchor",
9+
"style": {
10+
"elements": {
11+
"link": {
12+
"color": {
13+
"text": "#ff0000"
14+
}
15+
}
16+
},
17+
"color": {
18+
"text": "#ff0000",
19+
"background": "#00ffff"
20+
},
21+
"typography": {
22+
"fontSize": "30px"
23+
},
24+
"spacing": {
25+
"padding": {
26+
"top": "1px",
27+
"bottom": "1px",
28+
"left": "2px",
29+
"right": "2px"
30+
},
31+
"margin": {
32+
"top": "3px",
33+
"bottom": "3px",
34+
"left": "4px",
35+
"right": "4px"
36+
}
37+
}
38+
}
39+
},
40+
"innerBlocks": []
41+
}
42+
]
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[
2+
{
3+
"blockName": "core/form",
4+
"attrs": {
5+
"className": "custom-class",
6+
"style": {
7+
"elements": {
8+
"link": {
9+
"color": {
10+
"text": "#ff0000"
11+
}
12+
}
13+
},
14+
"color": {
15+
"text": "#ff0000",
16+
"background": "#00ffff"
17+
},
18+
"typography": {
19+
"fontSize": "30px"
20+
},
21+
"spacing": {
22+
"padding": {
23+
"top": "1px",
24+
"bottom": "1px",
25+
"left": "2px",
26+
"right": "2px"
27+
},
28+
"margin": {
29+
"top": "3px",
30+
"bottom": "3px",
31+
"left": "4px",
32+
"right": "4px"
33+
}
34+
}
35+
}
36+
},
37+
"innerBlocks": [],
38+
"innerHTML": "\n<form id=\"anchor\" class=\"wp-block-form\" style=\"color:#ff0000;background-color:#00ffff;margin-top:3px;margin-right:4px;margin-bottom:3px;margin-left:4px;padding-top:1px;padding-right:2px;padding-bottom:1px;padding-left:2px;font-size:30px\" enctype=\"text/plain\"></form>\n",
39+
"innerContent": [
40+
"\n<form id=\"anchor\" class=\"wp-block-form\" style=\"color:#ff0000;background-color:#00ffff;margin-top:3px;margin-right:4px;margin-bottom:3px;margin-left:4px;padding-top:1px;padding-right:2px;padding-bottom:1px;padding-left:2px;font-size:30px\" enctype=\"text/plain\"></form>\n"
41+
]
42+
}
43+
]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- wp:form {"style":{"elements":{"link":{"color":{"text":"#ff0000"}}},"color":{"text":"#ff0000","background":"#00ffff"},"typography":{"fontSize":"30px"},"spacing":{"padding":{"top":"1px","bottom":"1px","left":"2px","right":"2px"},"margin":{"top":"3px","bottom":"3px","left":"4px","right":"4px"}}}} -->
2+
<form id="anchor" class="wp-block-form has-text-color has-background has-link-color" style="color:#ff0000;background-color:#00ffff;margin-top:3px;margin-right:4px;margin-bottom:3px;margin-left:4px;padding-top:1px;padding-right:2px;padding-bottom:1px;padding-left:2px;font-size:30px" enctype="text/plain"></form>
3+
<!-- /wp:form -->
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
<!-- wp:form {"className":"custom-class","style":{"elements":{"link":{"color":{"text":"#ff0000"}}},"color":{"text":"#ff0000","background":"#00ffff"},"typography":{"fontSize":"30px"},"spacing":{"padding":{"top":"1px","bottom":"1px","left":"2px","right":"2px"},"margin":{"top":"3px","bottom":"3px","left":"4px","right":"4px"}}}} -->
2-
<form id="anchor" class="wp-block-form" style="color:#ff0000;background-color:#00ffff;margin-top:3px;margin-right:4px;margin-bottom:3px;margin-left:4px;padding-top:1px;padding-right:2px;padding-bottom:1px;padding-left:2px;font-size:30px" enctype="text/plain"></form>
3-
<!-- /wp:form -->
4-
51
<!-- wp:form {"className":"custom-class","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}},"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"var:preset|spacing|40","right":"var:preset|spacing|40"},"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"var:preset|spacing|40","right":"var:preset|spacing|40"}}},"backgroundColor":"accent-1","textColor":"contrast","fontSize":"x-large"} -->
62
<form id="anchor" class="wp-block-form" style="margin-top:var(--wp--preset--spacing--40);margin-right:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40);margin-left:var(--wp--preset--spacing--40);padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)" enctype="text/plain"></form>
73
<!-- /wp:form -->

test/integration/fixtures/blocks/core__form__deprecated-v1.json renamed to test/integration/fixtures/blocks/core__form__deprecated-v1-preset-value.json

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,4 @@
11
[
2-
{
3-
"name": "core/form",
4-
"isValid": true,
5-
"attributes": {
6-
"submissionMethod": "email",
7-
"method": "post",
8-
"anchor": "anchor",
9-
"style": {
10-
"elements": {
11-
"link": {
12-
"color": {
13-
"text": "#ff0000"
14-
}
15-
}
16-
},
17-
"color": {
18-
"text": "#ff0000",
19-
"background": "#00ffff"
20-
},
21-
"typography": {
22-
"fontSize": "30px"
23-
},
24-
"spacing": {
25-
"padding": {
26-
"top": "1px",
27-
"bottom": "1px",
28-
"left": "2px",
29-
"right": "2px"
30-
},
31-
"margin": {
32-
"top": "3px",
33-
"bottom": "3px",
34-
"left": "4px",
35-
"right": "4px"
36-
}
37-
}
38-
}
39-
},
40-
"innerBlocks": []
41-
},
422
{
433
"name": "core/form",
444
"isValid": true,

test/integration/fixtures/blocks/core__form__deprecated-v1.parsed.json renamed to test/integration/fixtures/blocks/core__form__deprecated-v1-preset-value.parsed.json

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,4 @@
11
[
2-
{
3-
"blockName": "core/form",
4-
"attrs": {
5-
"className": "custom-class",
6-
"style": {
7-
"elements": {
8-
"link": {
9-
"color": {
10-
"text": "#ff0000"
11-
}
12-
}
13-
},
14-
"color": {
15-
"text": "#ff0000",
16-
"background": "#00ffff"
17-
},
18-
"typography": {
19-
"fontSize": "30px"
20-
},
21-
"spacing": {
22-
"padding": {
23-
"top": "1px",
24-
"bottom": "1px",
25-
"left": "2px",
26-
"right": "2px"
27-
},
28-
"margin": {
29-
"top": "3px",
30-
"bottom": "3px",
31-
"left": "4px",
32-
"right": "4px"
33-
}
34-
}
35-
}
36-
},
37-
"innerBlocks": [],
38-
"innerHTML": "\n<form id=\"anchor\" class=\"wp-block-form\" style=\"color:#ff0000;background-color:#00ffff;margin-top:3px;margin-right:4px;margin-bottom:3px;margin-left:4px;padding-top:1px;padding-right:2px;padding-bottom:1px;padding-left:2px;font-size:30px\" enctype=\"text/plain\"></form>\n",
39-
"innerContent": [
40-
"\n<form id=\"anchor\" class=\"wp-block-form\" style=\"color:#ff0000;background-color:#00ffff;margin-top:3px;margin-right:4px;margin-bottom:3px;margin-left:4px;padding-top:1px;padding-right:2px;padding-bottom:1px;padding-left:2px;font-size:30px\" enctype=\"text/plain\"></form>\n"
41-
]
42-
},
43-
{
44-
"blockName": null,
45-
"attrs": {},
46-
"innerBlocks": [],
47-
"innerHTML": "\n\n",
48-
"innerContent": [ "\n\n" ]
49-
},
502
{
513
"blockName": "core/form",
524
"attrs": {
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
<!-- wp:form {"style":{"elements":{"link":{"color":{"text":"#ff0000"}}},"color":{"text":"#ff0000","background":"#00ffff"},"typography":{"fontSize":"30px"},"spacing":{"padding":{"top":"1px","bottom":"1px","left":"2px","right":"2px"},"margin":{"top":"3px","bottom":"3px","left":"4px","right":"4px"}}}} -->
2-
<form id="anchor" class="wp-block-form has-text-color has-background has-link-color" style="color:#ff0000;background-color:#00ffff;margin-top:3px;margin-right:4px;margin-bottom:3px;margin-left:4px;padding-top:1px;padding-right:2px;padding-bottom:1px;padding-left:2px;font-size:30px" enctype="text/plain"></form>
3-
<!-- /wp:form -->
4-
51
<!-- wp:form {"backgroundColor":"accent-1","textColor":"contrast","fontSize":"x-large","style":{"elements":{"link":{"color":{"text":"var:preset|color|contrast"}}},"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"var:preset|spacing|40","right":"var:preset|spacing|40"},"margin":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40","left":"var:preset|spacing|40","right":"var:preset|spacing|40"}}}} -->
62
<form id="anchor" class="wp-block-form has-contrast-color has-accent-1-background-color has-text-color has-background has-link-color has-x-large-font-size" style="margin-top:var(--wp--preset--spacing--40);margin-right:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40);margin-left:var(--wp--preset--spacing--40);padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--40)" enctype="text/plain"></form>
73
<!-- /wp:form -->

0 commit comments

Comments
 (0)