File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -307,39 +307,43 @@ public function test_auto_sizes_attribute_includes_valid_auto(): void {
307
307
*/
308
308
public function data_provider_for_auto_sizes_update_image_attributes (): array {
309
309
return array (
310
- array (
311
- array (
310
+ ' does_not_modify_eager_image ' => array (
311
+ ' attr ' => array (
312
312
'loading ' => 'eager ' ,
313
313
'sizes ' => '100vw ' ,
314
314
),
315
- array (
315
+ ' expected ' => array (
316
316
'loading ' => 'eager ' ,
317
317
'sizes ' => '100vw ' ,
318
318
),
319
319
),
320
320
321
- // Test when the image is not responsive.
322
- array ( array ( 'loading ' => 'lazy ' ), array ( 'loading ' => 'lazy ' ) ),
321
+ 'does_not_modify_non_responsive_image ' => array (
322
+ 'attr ' => array (
323
+ 'loading ' => 'lazy ' ,
324
+ ),
325
+ 'expected ' => array (
326
+ 'loading ' => 'lazy ' ,
327
+ ),
328
+ ),
323
329
324
- // Test when 'auto' already exists in the sizes attribute.
325
- array (
326
- array (
330
+ 'does_not_duplicate_auto_in_sizes ' => array (
331
+ 'attr ' => array (
327
332
'loading ' => 'lazy ' ,
328
333
'sizes ' => 'auto, 100vw ' ,
329
334
),
330
- array (
335
+ ' expected ' => array (
331
336
'loading ' => 'lazy ' ,
332
337
'sizes ' => 'auto, 100vw ' ,
333
338
),
334
339
),
335
340
336
- // Test when 'auto' needs to be added to the sizes attribute.
337
- array (
338
- array (
341
+ 'adds_auto_to_sizes_when_needed ' => array (
342
+ 'attr ' => array (
339
343
'loading ' => 'lazy ' ,
340
344
'sizes ' => '100vw ' ,
341
345
),
342
- array (
346
+ ' expected ' => array (
343
347
'loading ' => 'lazy ' ,
344
348
'sizes ' => 'auto, 100vw ' ,
345
349
),
You can’t perform that action at this time.
0 commit comments