Wordpress/tests/phpunit/tests/image
Boone Gorges 44d021b686 More explicit tests for image_get_intermediate_size().
After [33807], `Tests_Image_Intermediate_Size::test_get_intermediate_sizes_by_array_zero_width()`
was failing intermittently. This failure was due to the use of a random number
for the image height. When the height was sufficiently large - $height >= 202 -
to change the aspect ratio of the cropped image (based on WP's threshold of a
1px difference), the test passed. And when the height was exactly 200, the
medium image size was hit exactly. The failure occurred only with a height of
201, which is close enough to 200 so that WP determined that the aspect ratio
of the potential crop was close enough to match.

The current changeset splits the test into two, in order to demonstrate the
failure.

See #17626. Fixes #34087.

git-svn-id: https://develop.svn.wordpress.org/trunk@34775 602fd350-edb4-49c9-b593-d223f7449a82
2015-10-02 14:13:15 +00:00
..
base.php In PHPUnit test classes, parent::tearDown() should be the last thing done in tearDown() methods. 2015-03-05 13:14:15 +00:00
dimensions.php Fix edge-case in media cropping where selection and destination are the same size. 2014-11-30 06:26:26 +00:00
editor_gd.php Better image-type support checks in image unit tests. 2015-02-22 21:06:36 +00:00
editor_imagick.php Preserve alpha transparency when rotating a PNG while GD is the active image editor. 2015-01-03 22:01:54 +00:00
editor.php Require dependencies when appropriate in some unit test files. 2015-07-14 03:07:13 +00:00
functions.php Use PHP 5.2 compatible syntax in image tests. 2015-02-22 21:41:22 +00:00
header.php After [34188], fix unit test for image header. 2015-09-15 18:43:51 +00:00
intermediate_size.php More explicit tests for image_get_intermediate_size(). 2015-10-02 14:13:15 +00:00
meta.php Media: In wp_read_image_metadata(), include IPTC Keywords when available in $meta. 2015-09-22 04:18:02 +00:00
resize_gd.php Move GD-specific resize test to GD-specific resize test file. 2015-01-21 18:27:44 +00:00
resize_imagick.php Wouldn't it be incredible if you could run Unit Tests without all of your uploads being indiscriminately blown away and your upload folder permissions being destroyed? 2014-07-12 07:08:15 +00:00
resize.php Move GD-specific resize test to GD-specific resize test file. 2015-01-21 18:27:44 +00:00
site_icon.php Tests: Remove test for delete_site_icon(). 2015-07-20 20:52:39 +00:00
size.php Use round() instead of floor() when resizing image dimensions. 2014-11-30 19:53:18 +00:00