-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Add fixture for Column deprecation (#26774)
- Loading branch information
Showing
5 changed files
with
103 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/e2e-tests/fixtures/blocks/core__column__deprecated-1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- wp:column {"width":33.33} --> | ||
<div class="wp-block-column" style="flex-basis:33.33%"> | ||
<!-- wp:paragraph --> | ||
<p>Column One, Paragraph One</p> | ||
<!-- /wp:paragraph --> | ||
<!-- wp:paragraph --> | ||
<p>Column One, Paragraph Two</p> | ||
<!-- /wp:paragraph --> | ||
</div> | ||
<!-- /wp:columns --> |
35 changes: 35 additions & 0 deletions
35
packages/e2e-tests/fixtures/blocks/core__column__deprecated-1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[ | ||
{ | ||
"clientId": "_clientId_0", | ||
"name": "core/column", | ||
"isValid": true, | ||
"attributes": { | ||
"width": "33.33%" | ||
}, | ||
"innerBlocks": [ | ||
{ | ||
"clientId": "_clientId_0", | ||
"name": "core/paragraph", | ||
"isValid": true, | ||
"attributes": { | ||
"content": "Column One, Paragraph One", | ||
"dropCap": false | ||
}, | ||
"innerBlocks": [], | ||
"originalContent": "<p>Column One, Paragraph One</p>" | ||
}, | ||
{ | ||
"clientId": "_clientId_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\" style=\"flex-basis:33.33%\">\n\t\n\t\n</div>" | ||
} | ||
] |
45 changes: 45 additions & 0 deletions
45
packages/e2e-tests/fixtures/blocks/core__column__deprecated-1.parsed.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[ | ||
{ | ||
"blockName": "core/column", | ||
"attrs": { | ||
"width": 33.33 | ||
}, | ||
"innerBlocks": [ | ||
{ | ||
"blockName": "core/paragraph", | ||
"attrs": {}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n\t<p>Column One, Paragraph One</p>\n\t", | ||
"innerContent": [ | ||
"\n\t<p>Column One, Paragraph One</p>\n\t" | ||
] | ||
}, | ||
{ | ||
"blockName": "core/paragraph", | ||
"attrs": {}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n\t<p>Column One, Paragraph Two</p>\n\t", | ||
"innerContent": [ | ||
"\n\t<p>Column One, Paragraph Two</p>\n\t" | ||
] | ||
} | ||
], | ||
"innerHTML": "\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\">\n\t\n\t\n</div>\n", | ||
"innerContent": [ | ||
"\n<div class=\"wp-block-column\" style=\"flex-basis:33.33%\">\n\t", | ||
null, | ||
"\n\t", | ||
null, | ||
"\n</div>\n" | ||
] | ||
}, | ||
{ | ||
"blockName": null, | ||
"attrs": {}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n", | ||
"innerContent": [ | ||
"\n" | ||
] | ||
} | ||
] |
9 changes: 9 additions & 0 deletions
9
packages/e2e-tests/fixtures/blocks/core__column__deprecated-1.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!-- wp:column {"width":"33.33%"} --> | ||
<div class="wp-block-column" style="flex-basis:33.33%"><!-- wp:paragraph --> | ||
<p>Column One, Paragraph One</p> | ||
<!-- /wp:paragraph --> | ||
|
||
<!-- wp:paragraph --> | ||
<p>Column One, Paragraph Two</p> | ||
<!-- /wp:paragraph --></div> | ||
<!-- /wp:column --> |