Skip to content

Commit

Permalink
Blocks: Update and regenerate columns blocks fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Jun 20, 2018
1 parent fc0bdf7 commit 8e4aedd
Show file tree
Hide file tree
Showing 9 changed files with 222 additions and 103 deletions.
10 changes: 10 additions & 0 deletions core-blocks/test/fixtures/core__column.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:paragraph -->
<p>Column One, Paragraph One</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Column One, Paragraph Two</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:columns -->
37 changes: 37 additions & 0 deletions core-blocks/test/fixtures/core__column.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[
{
"uid": "_uid_0",
"name": "core/column",
"isValid": true,
"attributes": {},
"innerBlocks": [
{
"uid": "_uid_0",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"content": [
"Column One, Paragraph One"
],
"dropCap": false
},
"innerBlocks": [],
"originalContent": "<p>Column One, Paragraph One</p>"
},
{
"uid": "_uid_1",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"content": [
"Column One, Paragraph Two"
],
"dropCap": false
},
"innerBlocks": [],
"originalContent": "<p>Column One, Paragraph Two</p>"
}
],
"originalContent": "<div class=\"wp-block-column\">\n\t\n\t\n</div>"
}
]
25 changes: 25 additions & 0 deletions core-blocks/test/fixtures/core__column.parsed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"blockName": "core/column",
"attrs": null,
"innerBlocks": [
{
"blockName": "core/paragraph",
"attrs": null,
"innerBlocks": [],
"innerHTML": "\n\t<p>Column One, Paragraph One</p>\n\t"
},
{
"blockName": "core/paragraph",
"attrs": null,
"innerBlocks": [],
"innerHTML": "\n\t<p>Column One, Paragraph Two</p>\n\t"
}
],
"innerHTML": "\n<div class=\"wp-block-column\">\n\t\n\t\n</div>\n"
},
{
"attrs": {},
"innerHTML": "\n"
}
]
11 changes: 11 additions & 0 deletions core-blocks/test/fixtures/core__column.serialized.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:paragraph -->
<p>Column One, Paragraph One</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Column One, Paragraph Two</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
32 changes: 20 additions & 12 deletions core-blocks/test/fixtures/core__columns.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
<!-- wp:columns {"columns":3} -->
<div class="wp-block-columns has-3-columns">
<!-- wp:paragraph {"layout":"column-1"} -->
<p class="layout-column-1">Column One, Paragraph One</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"layout":"column-1"} -->
<p class="layout-column-1">Column One, Paragraph Two</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"layout":"column-2"} -->
<p class="layout-column-2">Column Two, Paragraph One</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph {"layout":"column-3"} -->
<p class="layout-column-3">Column Three, Paragraph One</p>
<!-- /wp:paragraph -->
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:paragraph -->
<p>Column One, Paragraph One</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Column One, Paragraph Two</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:paragraph -->
<p>Column Two, Paragraph One</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Column Three, Paragraph One</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
112 changes: 63 additions & 49 deletions core-blocks/test/fixtures/core__columns.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,61 +9,75 @@
"innerBlocks": [
{
"uid": "_uid_0",
"name": "core/paragraph",
"name": "core/column",
"isValid": true,
"attributes": {
"content": [
"Column One, Paragraph One"
],
"dropCap": false,
"layout": "column-1"
},
"innerBlocks": [],
"originalContent": "<p class=\"layout-column-1\">Column One, Paragraph One</p>"
"attributes": {},
"innerBlocks": [
{
"uid": "_uid_0",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"content": [
"Column One, Paragraph One"
],
"dropCap": false
},
"innerBlocks": [],
"originalContent": "<p>Column One, Paragraph One</p>"
},
{
"uid": "_uid_1",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"content": [
"Column One, Paragraph Two"
],
"dropCap": false
},
"innerBlocks": [],
"originalContent": "<p>Column One, Paragraph Two</p>"
}
],
"originalContent": "<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>"
},
{
"uid": "_uid_1",
"name": "core/paragraph",
"name": "core/column",
"isValid": true,
"attributes": {
"content": [
"Column One, Paragraph Two"
],
"dropCap": false,
"layout": "column-1"
},
"innerBlocks": [],
"originalContent": "<p class=\"layout-column-1\">Column One, Paragraph Two</p>"
},
{
"uid": "_uid_2",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"content": [
"Column Two, Paragraph One"
],
"dropCap": false,
"layout": "column-2"
},
"innerBlocks": [],
"originalContent": "<p class=\"layout-column-2\">Column Two, Paragraph One</p>"
},
{
"uid": "_uid_3",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"content": [
"Column Three, Paragraph One"
],
"dropCap": false,
"layout": "column-3"
},
"innerBlocks": [],
"originalContent": "<p class=\"layout-column-3\">Column Three, Paragraph One</p>"
"attributes": {},
"innerBlocks": [
{
"uid": "_uid_0",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"content": [
"Column Two, Paragraph One"
],
"dropCap": false
},
"innerBlocks": [],
"originalContent": "<p>Column Two, Paragraph One</p>"
},
{
"uid": "_uid_1",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"content": [
"Column Three, Paragraph One"
],
"dropCap": false
},
"innerBlocks": [],
"originalContent": "<p>Column Three, Paragraph One</p>"
}
],
"originalContent": "<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>"
}
],
"originalContent": "<div class=\"wp-block-columns has-3-columns\">\n\t\n\t\n\t\n\t\n</div>"
"originalContent": "<div class=\"wp-block-columns has-3-columns\">\n\t\n\t\n</div>"
}
]
64 changes: 35 additions & 29 deletions core-blocks/test/fixtures/core__columns.parsed.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,45 @@
},
"innerBlocks": [
{
"blockName": "core/paragraph",
"attrs": {
"layout": "column-1"
},
"innerBlocks": [],
"innerHTML": "\n\t<p class=\"layout-column-1\">Column One, Paragraph One</p>\n\t"
"blockName": "core/column",
"attrs": null,
"innerBlocks": [
{
"blockName": "core/paragraph",
"attrs": null,
"innerBlocks": [],
"innerHTML": "\n\t\t<p>Column One, Paragraph One</p>\n\t\t"
},
{
"blockName": "core/paragraph",
"attrs": null,
"innerBlocks": [],
"innerHTML": "\n\t\t<p>Column One, Paragraph Two</p>\n\t\t"
}
],
"innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>\n\t"
},
{
"blockName": "core/paragraph",
"attrs": {
"layout": "column-1"
},
"innerBlocks": [],
"innerHTML": "\n\t<p class=\"layout-column-1\">Column One, Paragraph Two</p>\n\t"
},
{
"blockName": "core/paragraph",
"attrs": {
"layout": "column-2"
},
"innerBlocks": [],
"innerHTML": "\n\t<p class=\"layout-column-2\">Column Two, Paragraph One</p>\n\t"
},
{
"blockName": "core/paragraph",
"attrs": {
"layout": "column-3"
},
"innerBlocks": [],
"innerHTML": "\n\t<p class=\"layout-column-3\">Column Three, Paragraph One</p>\n\t"
"blockName": "core/column",
"attrs": null,
"innerBlocks": [
{
"blockName": "core/paragraph",
"attrs": null,
"innerBlocks": [],
"innerHTML": "\n\t\t<p>Column Two, Paragraph One</p>\n\t\t"
},
{
"blockName": "core/paragraph",
"attrs": null,
"innerBlocks": [],
"innerHTML": "\n\t\t<p>Column Three, Paragraph One</p>\n\t\t"
}
],
"innerHTML": "\n\t<div class=\"wp-block-column\">\n\t\t\n\t\t\n\t</div>\n\t"
}
],
"innerHTML": "\n<div class=\"wp-block-columns has-3-columns\">\n\t\n\t\n\t\n\t\n</div>\n"
"innerHTML": "\n<div class=\"wp-block-columns has-3-columns\">\n\t\n\t\n</div>\n"
},
{
"attrs": {},
Expand Down
32 changes: 20 additions & 12 deletions core-blocks/test/fixtures/core__columns.serialized.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
<!-- wp:columns {"columns":3} -->
<div class="wp-block-columns has-3-columns">
<!-- wp:paragraph {"layout":"column-1"} -->
<p class="layout-column-1">Column One, Paragraph One</p>
<!-- /wp:paragraph -->
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:paragraph -->
<p>Column One, Paragraph One</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"layout":"column-1"} -->
<p class="layout-column-1">Column One, Paragraph Two</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Column One, Paragraph Two</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->

<!-- wp:paragraph {"layout":"column-2"} -->
<p class="layout-column-2">Column Two, Paragraph One</p>
<!-- /wp:paragraph -->
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:paragraph -->
<p>Column Two, Paragraph One</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph {"layout":"column-3"} -->
<p class="layout-column-3">Column Three, Paragraph One</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>Column Three, Paragraph One</p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
</div>
<!-- /wp:columns -->
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"Paragraph ",
{
"type": "strong",
"key": "_domReact71",
"key": "_domReact73",
"ref": null,
"props": {
"children": "one"
Expand Down

0 comments on commit 8e4aedd

Please sign in to comment.