Changeset 393 in tests
- Timestamp:
- 08/04/2011 05:56:11 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_image.php
r366 r393 58 58 $this->assertEquals(200, $out['iso']); 59 59 $this->assertEquals(1/25, $out['shutter_speed']); 60 $this->assertEquals('IPTC Title', $out['title']);60 $this->assertEquals('IPTC Headline', $out['title']); 61 61 } 62 62 … … 479 479 // image_resize() should refuse to make an image larger 480 480 $image = image_resize( DIR_TESTDATA.'/images/test-image.jpg', 100, 100 ); 481 $this->assertEquals( false, $image ); 481 $this->assertInstanceOf( 'WP_Error', $image ); 482 $this->assertEquals( 'error_getting_dimensions', $image->get_error_code() ); 482 483 } 483 484 … … 607 608 // these are image files but aren't suitable for web pages because of compatibility or size issues 608 609 $files = array( 609 'test-image-cmyk.jpg',610 // 'test-image-cmyk.jpg', Allowed in r9727 610 611 'test-image.bmp', 611 'test-image-grayscale.jpg',612 // 'test-image-grayscale.jpg', Allowed in r9727 612 613 'test-image.pct', 613 614 'test-image.tga', … … 619 620 'test-image-zip.tiff', 620 621 ); 621 622 622 623 foreach ($files as $file) { 623 624 $this->assertFalse( file_is_displayable_image( DIR_TESTDATA.'/images/'.$file ), "file_is_valid_image($file) should return false" );
Note: See TracChangeset
for help on using the changeset viewer.