Changeset 35561 for trunk/tests/phpunit/tests/media.php
- Timestamp:
- 11/07/2015 02:09:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r35560 r35561 1013 1013 ); 1014 1014 1015 $image_src = 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image_meta['file']; 1015 $full_src = 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image_meta['file']; 1016 $large_src = 'http://' . WP_TESTS_DOMAIN . '/wp-content/uploads/' . $image_meta['sizes']['large']['file']; 1017 1016 1018 // Test with soft resized size array. 1017 1019 $size_array = array(900, 450); 1018 1020 1019 $this->assertFalse( wp_calculate_image_srcset( $image_src, $size_array, $image_meta ) ); 1021 // Full size GIFs should not return a srcset. 1022 $this->assertFalse( wp_calculate_image_srcset( $full_src, $size_array, $image_meta ) ); 1023 // Intermediate sized GIFs should not include the full size in the srcset. 1024 $this->assertFalse( strpos( wp_calculate_image_srcset( $large_src, $size_array, $image_meta ), $full_src ) ); 1020 1025 } 1021 1026 }
Note: See TracChangeset
for help on using the changeset viewer.