Skip to content

Commit

Permalink
Add missing block fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
nylen committed May 23, 2017
1 parent df253a2 commit 9f412a2
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blocks/test/fixtures/core-freeform.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- wp:core/freeform -->
Testing freeform block with some
<div class="wp-some-class">
HTML <span style="color: red;">content</span>
</div>
<!-- /wp:core/freeform -->
9 changes: 9 additions & 0 deletions blocks/test/fixtures/core-freeform.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"uid": "_uid_0",
"blockType": "core/freeform",
"attributes": {
"html": "Testing freeform block with some<div class=\"wp-some-class\">HTML <span style=\"color: red;\">content</span></div>"
}
}
]
5 changes: 5 additions & 0 deletions blocks/test/fixtures/core-freeform.serialized.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- wp:core/freeform -->
Testing freeform block with some
<div class="wp-some-class">HTML <span style="color: red;">content</span></div>
<!-- /wp:core/freeform -->

5 changes: 5 additions & 0 deletions blocks/test/fixtures/core-pullquote.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- wp:core/pullquote -->
<blockquote class="blocks-pullquote">
<p>Testing pullquote block...</p><footer>...with a caption</footer>
</blockquote>
<!-- /wp:core/pullquote -->
16 changes: 16 additions & 0 deletions blocks/test/fixtures/core-pullquote.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"uid": "_uid_0",
"blockType": "core/pullquote",
"attributes": {
"value": [
[
"Testing pullquote block..."
]
],
"citation": [
"...with a caption"
]
}
}
]
7 changes: 7 additions & 0 deletions blocks/test/fixtures/core-pullquote.serialized.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- wp:core/pullquote -->
<blockquote class="blocks-pullquote">
<p>Testing pullquote block...</p>
<footer>...with a caption</footer>
</blockquote>
<!-- /wp:core/pullquote -->

0 comments on commit 9f412a2

Please sign in to comment.