Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Framework: Regenerate fixtures #12124

Merged
merged 1 commit into from
Nov 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
},
"innerBlocks": [],
"innerHTML": "\n<figure class=\"wp-block-audio alignright\">\n <audio controls=\"\" src=\"https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3\"></audio>\n</figure>\n",
"innerContent": [ "\n<figure class=\"wp-block-audio alignright\">\n <audio controls=\"\" src=\"https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3\"></audio>\n</figure>\n" ]
"innerContent": [
"\n<figure class=\"wp-block-audio alignright\">\n <audio controls=\"\" src=\"https://media.simplecast.com/episodes/audio/80564/draft-podcast-51-livePublish2.mp3\"></audio>\n</figure>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
},
"innerBlocks": [],
"innerHTML": "\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https://github.com/WordPress/gutenberg\">Help build Gutenberg</a></div>\n",
"innerContent": [ "\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https://github.com/WordPress/gutenberg\">Help build Gutenberg</a></div>\n" ]
"innerContent": [
"\n<div class=\"wp-block-button aligncenter\"><a class=\"wp-block-button__link\" href=\"https://github.com/WordPress/gutenberg\">Help build Gutenberg</a></div>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
8 changes: 6 additions & 2 deletions test/integration/full-content/fixtures/core__code.parsed.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n<pre class=\"wp-block-code\"><code>export default function MyButton() {\n\treturn &lt;Button&gt;Click Me!&lt;/Button&gt;;\n}</code></pre>\n",
"innerContent": [ "\n<pre class=\"wp-block-code\"><code>export default function MyButton() {\n\treturn &lt;Button&gt;Click Me!&lt;/Button&gt;;\n}</code></pre>\n" ]
"innerContent": [
"\n<pre class=\"wp-block-code\"><code>export default function MyButton() {\n\treturn &lt;Button&gt;Click Me!&lt;/Button&gt;;\n}</code></pre>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
20 changes: 16 additions & 4 deletions test/integration/full-content/fixtures/core__column.parsed.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,36 @@
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n\t<p>Column One, Paragraph One</p>\n\t",
"innerContent": [ "\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" ]
"innerContent": [
"\n\t<p>Column One, Paragraph Two</p>\n\t"
]
}
],
"innerHTML": "\n<div class=\"wp-block-column\">\n\t\n\t\n</div>\n",
"innerContent": [ "\n<div class=\"wp-block-column\">\n\t", null, "\n\t", null, "\n</div>\n" ]
"innerContent": [
"\n<div class=\"wp-block-column\">\n\t",
null,
"\n\t",
null,
"\n</div>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"alt": "",
"caption": "",
"href": "https://wordpress.org/",
"linkDestination": "custom",
"linkClass": "custom-link"
"linkClass": "custom-link",
"linkDestination": "custom"
},
"innerBlocks": [],
"originalContent": "<figure class=\"wp-block-image\"><a class=\"custom-link\" href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
},
"innerBlocks": [],
"innerHTML": "\n<figure class=\"wp-block-image\"><a class=\"custom-link\" href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n",
"innerContent": [
"\n<figure class=\"wp-block-image\"><a class=\"custom-link\" href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
]
},
"innerContent": [
"\n<figure class=\"wp-block-image\"><a class=\"custom-link\" href=\"https://wordpress.org/\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
]
},
{
"attrs": {},
"blockName": null,
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [
"\n"
]
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"alt": "",
"caption": "",
"href": "https://wordpress.org/",
"linkDestination": "custom",
"rel": "external"
"rel": "external",
"linkDestination": "custom"
},
"innerBlocks": [],
"originalContent": "<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\" rel=\"external\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"linkDestination": "custom"
},
"innerBlocks": [],
"innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\" rel=\"external\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n",
"innerContent": [
"\n<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\" rel=\"external\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
]
},
"innerHTML": "\n<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\" rel=\"external\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n",
"innerContent": [
"\n<figure class=\"wp-block-image\"><a href=\"https://wordpress.org/\" rel=\"external\"><img src=\"https://cldup.com/uuUqE_dXzy.jpg\" alt=\"\" /></a></figure>\n"
]
},
{
"attrs": {},
"blockName": null,
"innerBlocks": [],
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [
"innerContent": [
"\n"
]
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
},
"innerBlocks": [],
"innerHTML": "\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n",
"innerContent": [ "\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n" ]
"innerContent": [
"\n<p>Testing missing block with some</p>\n<div class=\"wp-some-class\">\n\tHTML <span style=\"color: red;\">content</span>\n</div>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
8 changes: 6 additions & 2 deletions test/integration/full-content/fixtures/core__more.parsed.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n<!--more-->\n",
"innerContent": [ "\n<!--more-->\n" ]
"innerContent": [
"\n<!--more-->\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@
},
"innerBlocks": [],
"innerHTML": "\n<!--more Continue Reading-->\n<!--noteaser-->\n",
"innerContent": [ "\n<!--more Continue Reading-->\n<!--noteaser-->\n" ]
"innerContent": [
"\n<!--more Continue Reading-->\n<!--noteaser-->\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n<!--nextpage-->\n",
"innerContent": [ "\n<!--nextpage-->\n" ]
"innerContent": [
"\n<!--nextpage-->\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
},
"innerBlocks": [],
"innerHTML": "\n<p style=\"text-align:right;\">... like this one, which is separate from the above and right aligned.</p>\n",
"innerContent": [ "\n<p style=\"text-align:right;\">... like this one, which is separate from the above and right aligned.</p>\n" ]
"innerContent": [
"\n<p style=\"text-align:right;\">... like this one, which is separate from the above and right aligned.</p>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"attrs": {},
"innerBlocks": [],
"innerHTML": "\nUnwrapped is <em>still</em> valid.\n",
"innerContent": [ "\nUnwrapped is <em>still</em> valid.\n" ]
"innerContent": [
"\nUnwrapped is <em>still</em> valid.\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n<pre class=\"wp-block-preformatted\">Some <em>preformatted</em> text...<br>And more!</pre>\n",
"innerContent": [ "\n<pre class=\"wp-block-preformatted\">Some <em>preformatted</em> text...<br>And more!</pre>\n" ]
"innerContent": [
"\n<pre class=\"wp-block-preformatted\">Some <em>preformatted</em> text...<br>And more!</pre>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Testing pullquote block...</p><cite>...with a caption</cite>\n </blockquote>\n</figure>\n",
"innerContent": [ "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Testing pullquote block...</p><cite>...with a caption</cite>\n </blockquote>\n</figure>\n" ]
"innerContent": [
"\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Testing pullquote block...</p><cite>...with a caption</cite>\n </blockquote>\n</figure>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Paragraph <strong>one</strong></p>\n <p>Paragraph two</p>\n <cite>by whomever</cite>\n\t</blockquote>\n</figure>\n",
"innerContent": [ "\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Paragraph <strong>one</strong></p>\n <p>Paragraph two</p>\n <cite>by whomever</cite>\n\t</blockquote>\n</figure>\n" ]
"innerContent": [
"\n<figure class=\"wp-block-pullquote\">\n <blockquote>\n <p>Paragraph <strong>one</strong></p>\n <p>Paragraph two</p>\n <cite>by whomever</cite>\n\t</blockquote>\n</figure>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n<blockquote class=\"wp-block-quote\"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n",
"innerContent": [ "\n<blockquote class=\"wp-block-quote\"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n" ]
"innerContent": [
"\n<blockquote class=\"wp-block-quote\"><p>The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [ "\n" ]
"innerContent": [
"\n"
]
}
]
Loading