Changeset 50250 for branches/3.8/tests/phpunit/tests/image/editor_gd.php
- Timestamp:
- 02/08/2021 08:57:54 PM (4 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
/branches/5.0 merged: 43836 /trunk merged: 44176,45445,45745,45762,45783-45784,45800,45819,45885,46320,46999,47225,47912,48121,49267,49335,49358,49360,49362
- Property svn:mergeinfo changed
-
branches/3.8/tests/phpunit/tests/image/editor_gd.php
r47338 r50250 33 33 /** 34 34 * Check support for GD compatible mime types. 35 * 35 * 36 36 */ 37 37 public function test_supports_mime_type() { … … 45 45 /** 46 46 * Test resizing an image, not using crop 47 * 47 * 48 48 */ 49 49 public function test_resize() { … … 61 61 /** 62 62 * Test resizing an image including cropping 63 * 63 * 64 64 */ 65 65 public function test_resize_and_crop() { … … 133 133 /** 134 134 * Test the image created with WP_Image_Edior_GD preserves alpha when resizing 135 * 135 * 136 136 * @ticket 23039 137 137 */ … … 144 144 $editor->resize(5,5); 145 145 $save_to_file = tempnam( get_temp_dir(), '' ) . '.png'; 146 146 147 147 $editor->save( $save_to_file ); 148 148 149 $this->assertImageAlphaAtPoint ( $save_to_file, array( 0,0 ), 127 );149 $this->assertImageAlphaAtPointGD( $save_to_file, array( 0,0 ), 127 ); 150 150 151 151 unlink( $save_to_file ); 152 152 } 153 153 154 154 /** 155 155 * Test the image created with WP_Image_Edior_GD preserves alpha with no resizing etc 156 * 156 * 157 157 * @ticket 23039 158 158 */ … … 165 165 166 166 $save_to_file = tempnam( get_temp_dir(), '' ) . '.png'; 167 167 168 168 $editor->save( $save_to_file ); 169 169 170 $this->assertImageAlphaAtPoint ( $save_to_file, array( 0,0 ), 127 );170 $this->assertImageAlphaAtPointGD( $save_to_file, array( 0,0 ), 127 ); 171 171 172 172 unlink( $save_to_file );
Note: See TracChangeset
for help on using the changeset viewer.