Skip to content

Commit

Permalink
Update fixtures with gallery data-wp-media-id
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaz committed Jun 27, 2017
1 parent 2dcf487 commit cf7bbb4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions blocks/test/fixtures/core-gallery.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- wp:core/gallery -->
<div class="blocks-gallery wp-block-gallery">
<figure class="blocks-gallery-image">
<img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" data-postId="1" />
<img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" data-wp-media-id="1" />
</figure>
<figure class="blocks-gallery-image">
<img src="http://google.com/hi.png" alt="title" data-postId="2" />
<img src="http://google.com/hi.png" alt="title" data-wp-media-id="2" />
</figure>
</div>
<!-- /wp:core/gallery -->
4 changes: 2 additions & 2 deletions blocks/test/fixtures/core-gallery.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"name": "core/gallery",
"attributes": {
"images": [
{ "url": "https://cldup.com/uuUqE_dXzy.jpg", "alt": "title", "id": 1 },
{ "url": "http://google.com/hi.png", "alt": "title", "id": 2 }
{ "url": "https://cldup.com/uuUqE_dXzy.jpg", "alt": "title", "id": "1" },
{ "url": "http://google.com/hi.png", "alt": "title", "id": "2" }
]
}
}
Expand Down
5 changes: 2 additions & 3 deletions blocks/test/fixtures/core-gallery.serialized.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!-- wp:core/gallery -->
<div class="blocks-gallery alignnone columns-2 wp-block-gallery">
<figure class="blocks-gallery-image"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" data-postId="1" /></figure>
<figure class="blocks-gallery-image"><img src="http://google.com/hi.png" alt="title" data-postId="2" /></figure>
<figure class="blocks-gallery-image"><img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" data-wp-media-id="1" /></figure>
<figure class="blocks-gallery-image"><img src="http://google.com/hi.png" alt="title" data-wp-media-id="2" /></figure>
</div>
<!-- /wp:core/gallery -->

0 comments on commit cf7bbb4

Please sign in to comment.