MediaWiki
REL1_20
|
Tests related to auto rotation. More...
Public Member Functions | |
provideBitmapExtractPreRotationDimensions () | |
providerFiles () | |
providerFilesNoAutoRotate () | |
setUp () | |
tearDown () | |
testBitmapExtractPreRotationDimensions ($rotation, $expected) | |
provideBitmapExtractPreRotationDimensions | |
testMetadata ($name, $type, $info) | |
providerFiles | |
testMetadataNoAutoRotate ($name, $type, $info) | |
Same as before, but with auto-rotation disabled. | |
testRotationRendering ($name, $type, $info, $thumbs) | |
providerFiles | |
testRotationRenderingNoAutoRotate ($name, $type, $info, $thumbs) | |
providerFilesNoAutoRotate | |
Public Attributes | |
const | TEST_HEIGHT = 200 |
const | TEST_WIDTH = 100 |
Private Member Functions | |
dataFile ($name, $type) |
Tests related to auto rotation.
Definition at line 6 of file ExifRotationTest.php.
ExifRotationTest::dataFile | ( | $ | name, |
$ | type | ||
) | [private] |
Definition at line 97 of file ExifRotationTest.php.
Referenced by testMetadata(), testMetadataNoAutoRotate(), testRotationRendering(), and testRotationRenderingNoAutoRotate().
Definition at line 239 of file ExifRotationTest.php.
Definition at line 102 of file ExifRotationTest.php.
Definition at line 191 of file ExifRotationTest.php.
Definition at line 8 of file ExifRotationTest.php.
References MediaWikiTestCase\getNewTempDirectory(), and wfDl().
Reimplemented from MediaWikiTestCase.
Definition at line 36 of file ExifRotationTest.php.
ExifRotationTest::testBitmapExtractPreRotationDimensions | ( | $ | rotation, |
$ | expected | ||
) |
provideBitmapExtractPreRotationDimensions
Definition at line 231 of file ExifRotationTest.php.
References $result.
ExifRotationTest::testMetadata | ( | $ | name, |
$ | type, | ||
$ | info | ||
) |
providerFiles
Definition at line 48 of file ExifRotationTest.php.
References $file, BitmapHandler\canRotate(), and dataFile().
ExifRotationTest::testMetadataNoAutoRotate | ( | $ | name, |
$ | type, | ||
$ | info | ||
) |
Same as before, but with auto-rotation disabled.
providerFilesNoAutoRotate
Definition at line 139 of file ExifRotationTest.php.
References $file, and dataFile().
ExifRotationTest::testRotationRendering | ( | $ | name, |
$ | type, | ||
$ | info, | ||
$ | thumbs | ||
) |
providerFiles
Definition at line 61 of file ExifRotationTest.php.
References $file, $matches, $out, $params, $size, BitmapHandler\canRotate(), dataFile(), File\RENDER_FORCE, and File\RENDER_NOW.
ExifRotationTest::testRotationRenderingNoAutoRotate | ( | $ | name, |
$ | type, | ||
$ | info, | ||
$ | thumbs | ||
) |
providerFilesNoAutoRotate
Definition at line 154 of file ExifRotationTest.php.
References $file, $matches, $out, $params, $size, dataFile(), File\RENDER_FORCE, and File\RENDER_NOW.
const ExifRotationTest::TEST_HEIGHT = 200 |
Definition at line 226 of file ExifRotationTest.php.
const ExifRotationTest::TEST_WIDTH = 100 |
Definition at line 225 of file ExifRotationTest.php.