Make WordPress Core

Changeset 665 in tests


Ignore:
Timestamp:
04/10/2012 03:12:34 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Test wp_read_image_metadata() with UTF-8 IPTC tags. see #WP9417.

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_image.php

    r583 r665  
    108108        $this->assertEquals(0, $out['shutter_speed']);
    109109        $this->assertEquals('', $out['title']);
     110    }
     111
     112    function test_utf8_iptc_tags() {
     113        $this->knownWPBug(9417);
     114
     115        // trilingual UTF-8 text in the ITPC caption-abstract field
     116        $out = wp_read_image_metadata(DIR_TESTDATA.'/images/test-image-iptc.jpg');
     117
     118        $this->assertEquals('This is a comment. / Это комментарий. / Βλέπετε ένα σχόλιο.', $out['caption']);
    110119    }
    111120   
Note: See TracChangeset for help on using the changeset viewer.