Skip to content

Commit

Permalink
run: test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
dhananjaykuber committed Feb 12, 2025
1 parent a9fceec commit ce4aea4
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 13 deletions.
3 changes: 2 additions & 1 deletion test/integration/fixtures/blocks/core__media-text.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"mediaType": "image",
"mediaWidth": 50,
"isStackedOnMobile": true,
"useFeaturedImage": false
"useFeaturedImage": false,
"aspectRatio": "auto"
},
"innerBlocks": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"name": "core/media-text",
"isValid": true,
"attributes": {
"align": "none",
"align": "wide",
"mediaAlt": "My alt text",
"mediaPosition": "left",
"mediaType": "image",
"mediaWidth": 50,
"isStackedOnMobile": true,
"isStackedOnMobile": false,
"mediaUrl": "data:image/jpeg;base64,/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=",
"imageFill": true,
"useFeaturedImage": false
"className": "is-stacked-on-mobile"
},
"innerBlocks": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- wp:media-text {"mediaType":"image","imageFill":true} -->
<div class="wp-block-media-text is-stacked-on-mobile is-image-fill-element"><figure class="wp-block-media-text__media"><img src="data:image/jpeg;base64,/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=" alt="My alt text" style="object-position:50% 50%"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Content…","fontSize":"large"} -->
<!-- wp:media-text {"align":"wide","mediaType":"image","isStackedOnMobile":false,"imageFill":true,"className":"is-stacked-on-mobile"} -->
<div class="wp-block-media-text alignwide is-image-fill-element is-stacked-on-mobile"><figure class="wp-block-media-text__media"><img src="data:image/jpeg;base64,/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=" alt="My alt text" style="object-position:50% 50%"/></figure><div class="wp-block-media-text__content"><!-- wp:paragraph {"placeholder":"Content…","fontSize":"large"} -->
<p class="has-large-font-size">My Content</p>
<!-- /wp:paragraph --></div></div>
<!-- /wp:media-text -->
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"mediaType": "image",
"mediaWidth": 50,
"isStackedOnMobile": true,
"useFeaturedImage": false
"useFeaturedImage": false,
"aspectRatio": "auto"
},
"innerBlocks": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"mediaWidth": 50,
"isStackedOnMobile": true,
"imageFill": true,
"useFeaturedImage": false
"useFeaturedImage": false,
"aspectRatio": "auto"
},
"innerBlocks": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"x": 0.84,
"y": 0.84
},
"useFeaturedImage": false
"useFeaturedImage": false,
"aspectRatio": "auto"
},
"innerBlocks": [
{
Expand Down
4 changes: 2 additions & 2 deletions test/integration/fixtures/blocks/core__separator-color.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"isValid": true,
"attributes": {
"opacity": "alpha-channel",
"backgroundColor": "accent",
"tagName": "hr"
"tagName": "hr",
"backgroundColor": "accent"
},
"innerBlocks": []
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"isValid": true,
"attributes": {
"opacity": "alpha-channel",
"tagName": "hr",
"style": {
"color": {
"background": "#5da54c"
}
},
"tagName": "hr"
}
},
"innerBlocks": []
}
Expand Down

0 comments on commit ce4aea4

Please sign in to comment.