Changeset 47122 for trunk/tests/phpunit/tests/image/meta.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/image/meta.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/meta.php
r46586 r47122 19 19 20 20 function test_exif_d70() { 21 // exif from a Nikon D7021 // Exif from a Nikon D70. 22 22 $out = wp_read_image_metadata( DIR_TESTDATA . '/images/2004-07-22-DSC_0008.jpg' ); 23 23 … … 35 35 36 36 function test_exif_d70_mf() { 37 // exif from a Nikon D70 - manual focus lens, so some data is unavailable37 // Exif from a Nikon D70 - manual focus lens, so some data is unavailable. 38 38 $out = wp_read_image_metadata( DIR_TESTDATA . '/images/2007-06-17DSC_4173.JPG' ); 39 39 … … 45 45 $this->assertEquals( '', $out['copyright'] ); 46 46 $this->assertEquals( 0, $out['focal_length'] ); 47 $this->assertEquals( 0, $out['iso'] ); // interesting - a Nikon bug?47 $this->assertEquals( 0, $out['iso'] ); // Interesting - a Nikon bug? 48 48 $this->assertEquals( 1 / 500, $out['shutter_speed'] ); 49 49 $this->assertEquals( '', $out['title'] ); 50 #$this->assertEquals(array('Flowers'), $out['keywords']);50 // $this->assertEquals( array( 'Flowers' ), $out['keywords'] ); 51 51 } 52 52 53 53 function test_exif_d70_iptc() { 54 // exif from a Nikon D70 with IPTC data added later54 // Exif from a Nikon D70 with IPTC data added later. 55 55 $out = wp_read_image_metadata( DIR_TESTDATA . '/images/2004-07-22-DSC_0007.jpg' ); 56 56 … … 68 68 69 69 function test_exif_fuji() { 70 // exif from a Fuji FinePix S5600 (thanks Mark)70 // Exif from a Fuji FinePix S5600 (thanks Mark). 71 71 $out = wp_read_image_metadata( DIR_TESTDATA . '/images/a2-small.jpg' ); 72 72 … … 88 88 */ 89 89 function test_exif_error() { 90 91 90 // https://core.trac.wordpress.org/ticket/6571 92 // this triggers a warning mesage when reading the exif block91 // This triggers a warning mesage when reading the Exif block. 93 92 $out = wp_read_image_metadata( DIR_TESTDATA . '/images/waffles.jpg' ); 94 93 … … 106 105 107 106 function test_exif_no_data() { 108 // no exif data in this image (from burningwell.org)107 // No Exif data in this image (from burningwell.org). 109 108 $out = wp_read_image_metadata( DIR_TESTDATA . '/images/canola.jpg' ); 110 109 … … 125 124 */ 126 125 function test_utf8_iptc_tags() { 127 128 // trilingual UTF-8 text in the ITPC caption-abstract field 126 // Trilingual UTF-8 text in the ITPC caption-abstract field. 129 127 $out = wp_read_image_metadata( DIR_TESTDATA . '/images/test-image-iptc.jpg' ); 130 128
Note: See TracChangeset
for help on using the changeset viewer.