-
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.
- Loading branch information
George Hotelling
committed
Jul 31, 2020
1 parent
50ae932
commit a1e07cf
Showing
4 changed files
with
103 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- wp:core/details {"content": "This is the summary ", "initialOpen": false} --> | ||
<details class="wp-block-details"> | ||
<summary>This is the summary </summary> | ||
<!-- wp:heading --> | ||
<h2>More here</h2> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph --> | ||
<p></p> | ||
<!-- /wp:paragraph --> | ||
</details> | ||
<!-- /wp:core/details --> |
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,36 @@ | ||
[ | ||
{ | ||
"clientId": "_clientId_0", | ||
"name": "core/details", | ||
"isValid": true, | ||
"attributes": { | ||
"initialOpen": false, | ||
"content": "This is the summary " | ||
}, | ||
"innerBlocks": [ | ||
{ | ||
"clientId": "_clientId_0", | ||
"name": "core/heading", | ||
"isValid": true, | ||
"attributes": { | ||
"content": "More here", | ||
"level": 2 | ||
}, | ||
"innerBlocks": [], | ||
"originalContent": "<h2>More here</h2>" | ||
}, | ||
{ | ||
"clientId": "_clientId_1", | ||
"name": "core/paragraph", | ||
"isValid": true, | ||
"attributes": { | ||
"content": "", | ||
"dropCap": false | ||
}, | ||
"innerBlocks": [], | ||
"originalContent": "<p></p>" | ||
} | ||
], | ||
"originalContent": "<details class=\"wp-block-details\">\n\t<summary>This is the summary </summary>\n\t\n\n\t\n</details>" | ||
} | ||
] |
46 changes: 46 additions & 0 deletions
46
packages/e2e-tests/fixtures/blocks/core__details.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,46 @@ | ||
[ | ||
{ | ||
"blockName": "core/details", | ||
"attrs": { | ||
"content": "This is the summary ", | ||
"initialOpen": false | ||
}, | ||
"innerBlocks": [ | ||
{ | ||
"blockName": "core/heading", | ||
"attrs": {}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n\t<h2>More here</h2>\n\t", | ||
"innerContent": [ | ||
"\n\t<h2>More here</h2>\n\t" | ||
] | ||
}, | ||
{ | ||
"blockName": "core/paragraph", | ||
"attrs": {}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n\t<p></p>\n\t", | ||
"innerContent": [ | ||
"\n\t<p></p>\n\t" | ||
] | ||
} | ||
], | ||
"innerHTML": "\n<details class=\"wp-block-details\">\n\t<summary>This is the summary </summary>\n\t\n\n\t\n</details>\n", | ||
"innerContent": [ | ||
"\n<details class=\"wp-block-details\">\n\t<summary>This is the summary </summary>\n\t", | ||
null, | ||
"\n\n\t", | ||
null, | ||
"\n</details>\n" | ||
] | ||
}, | ||
{ | ||
"blockName": null, | ||
"attrs": {}, | ||
"innerBlocks": [], | ||
"innerHTML": "\n", | ||
"innerContent": [ | ||
"\n" | ||
] | ||
} | ||
] |
9 changes: 9 additions & 0 deletions
9
packages/e2e-tests/fixtures/blocks/core__details.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:details {"content":"This is the summary "} --> | ||
<details class="wp-block-details"><summary>This is the summary </summary><!-- wp:heading --> | ||
<h2>More here</h2> | ||
<!-- /wp:heading --> | ||
|
||
<!-- wp:paragraph --> | ||
<p></p> | ||
<!-- /wp:paragraph --></details> | ||
<!-- /wp:details --> |