Skip to content

Commit

Permalink
Add missing core__gallery fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaz committed Jun 30, 2017
1 parent 5c535e2 commit 538bbb9
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
42 changes: 42 additions & 0 deletions blocks/test/fixtures/core__gallery.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[
{
"uid": "_uid_0",
"name": "core/gallery",
"attributes": {
"images": [
{
"sizes": {
"full": {
"url": "https://cldup.com/uuUqE_dXzy.jpg",
"height": 1080,
"width": 810,
"orientation": "portrait"
}
},
"mime": "image/jpeg",
"type": "image",
"subtype": "jpeg",
"id": 1,
"url": "https://cldup.com/uuUqE_dXzy.jpg",
"alt": "title"
},
{
"sizes": {
"full": {
"url": "http://google.com/hi.png",
"height": 1080,
"width": 1440,
"orientation": "landscape"
}
},
"mime": "image/jpeg",
"type": "image",
"subtype": "jpeg",
"id": 2,
"url": "http://google.com/hi.png",
"alt": "title"
}
]
}
}
]
6 changes: 6 additions & 0 deletions blocks/test/fixtures/core__gallery.serialized.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- wp:core/gallery {"images":[{"sizes":{"full":{"url":"https://cldup.com/uuUqE_dXzy.jpg","height":1080,"width":810,"orientation":"portrait"}},"mime":"image/jpeg","type":"image","subtype":"jpeg","id":1,"url":"https://cldup.com/uuUqE_dXzy.jpg","alt":"title"},{"sizes":{"full":{"url":"http://google.com/hi.png","height":1080,"width":1440,"orientation":"landscape"}},"mime":"image/jpeg","type":"image","subtype":"jpeg","id":2,"url":"http://google.com/hi.png","alt":"title"}]} -->
<div class="alignnone columns-2 is-cropped wp-block-gallery">
<figure class="blocks-gallery-image"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" /></figure>
<figure class="blocks-gallery-image"><img src="http://google.com/hi.png" alt="title" /></figure>
</div>
<!-- /wp:core/gallery -->

0 comments on commit 538bbb9

Please sign in to comment.