MediaWiki
REL1_21
|
Public Member Functions | |
testBinaryCommentStripped () | |
Comment values that are non-textual (random binary junk) should not be shown. | |
testExifByteOrder () | |
testIPTCHashComparisionBadHash () | |
testIPTCHashComparisionGoodHash () | |
testIPTCHashComparisionNoHash () | |
testIso88591Comment () | |
The file is iso-8859-1, but it should get auto converted. | |
testMultipleComment () | |
testPSIRExtraction () | |
testUtf8Comment ($file) | |
We also use this test to test padding bytes don't screw stuff up. | |
testXMPExtraction () | |
testXMPExtractionAltAppId () | |
Static Public Member Functions | |
static | provideUtf8Comment () |
Protected Member Functions | |
setUp () | |
setUp and tearDown should (where significant) happen in reverse order. |
Hard to find programs that create example files, and creating my own in vim propbably wouldn't serve as a very good "test". (Adobe photoshop probably creates such files but it costs money). The implementation of it currently in MediaWiki is based solely on reading the standard, without any real world test files.
Definition at line 9 of file JpegMetadataExtractorTest.php.
static JpegMetadataExtractorTest::provideUtf8Comment | ( | ) | [static] |
Definition at line 30 of file JpegMetadataExtractorTest.php.
References array().
JpegMetadataExtractorTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiTestCase.
Definition at line 11 of file JpegMetadataExtractorTest.php.
Comment values that are non-textual (random binary junk) should not be shown.
The example test file has a comment with a 0x5 byte in it which is a control character and considered binary junk for our purposes.
Definition at line 48 of file JpegMetadataExtractorTest.php.
References $res, and JpegMetadataExtractor\segmentSplitter().
Definition at line 101 of file JpegMetadataExtractorTest.php.
References $res, and JpegMetadataExtractor\segmentSplitter().
Definition at line 87 of file JpegMetadataExtractorTest.php.
References $res, JpegMetadataExtractor\doPSIR(), and JpegMetadataExtractor\segmentSplitter().
Definition at line 94 of file JpegMetadataExtractorTest.php.
References $res, JpegMetadataExtractor\doPSIR(), and JpegMetadataExtractor\segmentSplitter().
Definition at line 80 of file JpegMetadataExtractorTest.php.
References $res, JpegMetadataExtractor\doPSIR(), and JpegMetadataExtractor\segmentSplitter().
The file is iso-8859-1, but it should get auto converted.
Definition at line 39 of file JpegMetadataExtractorTest.php.
References $res, array(), and JpegMetadataExtractor\segmentSplitter().
Definition at line 56 of file JpegMetadataExtractorTest.php.
References $res, array(), and JpegMetadataExtractor\segmentSplitter().
Definition at line 67 of file JpegMetadataExtractorTest.php.
References $res, and JpegMetadataExtractor\segmentSplitter().
We also use this test to test padding bytes don't screw stuff up.
$file | filename |
provideUtf8Comment
Definition at line 25 of file JpegMetadataExtractorTest.php.
References $file, $res, array(), and JpegMetadataExtractor\segmentSplitter().
Definition at line 61 of file JpegMetadataExtractorTest.php.
References $res, and JpegMetadataExtractor\segmentSplitter().
Definition at line 73 of file JpegMetadataExtractorTest.php.
References $res, and JpegMetadataExtractor\segmentSplitter().