Make WordPress Core


Ignore:
Timestamp:
04/25/2022 04:55:45 PM (3 years ago)
Author:
gziolo
Message:

Tests: Update Gallery block unit tests to new gallery format

The Gallery block unit tests still use the old format, so this updates it to the new format that uses nested Image blocks.

Props glendaviesnz.
Fixes #55571.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/data/blocks/fixtures/core__gallery__columns.html

    r46587 r53261  
    1 <!-- wp:core/gallery {"columns":1} -->
    2 <ul class="wp-block-gallery columns-1 is-cropped">
    3     <li class="blocks-gallery-item">
    4         <figure>
    5             <img src="https://cldup.com/uuUqE_dXzy.jpg" alt="title" />
    6         </figure>
    7     </li>
    8     <li class="blocks-gallery-item">
    9         <figure>
    10             <img src="http://google.com/hi.png" alt="title" />
    11         </figure>
    12     </li>
    13 </ul>
    14 <!-- /wp:core/gallery -->
     1<!-- wp:gallery {"linkTo":"none","className":"columns-1"} -->
     2<figure class="wp-block-gallery has-nested-images is-cropped columns-1" >
     3    <!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
     4    <figure class="wp-block-image size-large">
     5        <img src="https://cldup.com/uuUqE_dXzy.jpg" alt="Image gallery image" />
     6    </figure>
     7    <!-- /wp:image -->
     8
     9    <!-- wp:image {"sizeSlug":"large","linkDestination":"none"} -->
     10    <figure class="wp-block-image size-large">
     11        <img src="http://google.com/hi.png" alt="Image gallery image" />
     12    </figure>
     13    <!-- /wp:image -->
     14</figure>
     15<!-- /wp:gallery -->
Note: See TracChangeset for help on using the changeset viewer.