|
MediaWiki
REL1_23
|
Tests related to auto rotation. More...


Public Member Functions | |
| testBitmapExtractPreRotationDimensions ($rotation, $expected) | |
| provideBitmapExtractPreRotationDimensions | |
| testMetadata ($name, $type, $info) | |
| provideFiles | |
| testMetadataNoAutoRotate ($name, $type, $info) | |
| Same as before, but with auto-rotation disabled. | |
| testRotationRendering ($name, $type, $info, $thumbs) | |
| provideFiles | |
| testRotationRenderingNoAutoRotate ($name, $type, $info, $thumbs) | |
| provideFilesNoAutoRotate | |
Static Public Member Functions | |
| static | provideBitmapExtractPreRotationDimensions () |
| static | provideFiles () |
| static | provideFilesNoAutoRotate () |
Public Attributes | |
| const | TEST_HEIGHT = 200 |
| const | TEST_WIDTH = 100 |
Protected Member Functions | |
| setUp () | |
Private Member Functions | |
| dataFile ($name, $type) | |
Tests related to auto rotation.
medium
Definition at line 9 of file ExifRotationTest.php.
| ExifRotationTest::dataFile | ( | $ | name, |
| $ | type | ||
| ) | [private] |
Definition at line 89 of file ExifRotationTest.php.
Referenced by testMetadata(), testMetadataNoAutoRotate(), testRotationRendering(), and testRotationRenderingNoAutoRotate().
| static ExifRotationTest::provideBitmapExtractPreRotationDimensions | ( | ) | [static] |
Definition at line 225 of file ExifRotationTest.php.
References array().
| static ExifRotationTest::provideFiles | ( | ) | [static] |
Definition at line 94 of file ExifRotationTest.php.
References array().
| static ExifRotationTest::provideFilesNoAutoRotate | ( | ) | [static] |
Definition at line 178 of file ExifRotationTest.php.
References array().
| ExifRotationTest::setUp | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 11 of file ExifRotationTest.php.
References array(), MediaWikiTestCase\checkPHPExtension(), MediaWikiTestCase\getNewTempDirectory(), and MediaWikiTestCase\setMwGlobals().
| ExifRotationTest::testBitmapExtractPreRotationDimensions | ( | $ | rotation, |
| $ | expected | ||
| ) |
provideBitmapExtractPreRotationDimensions
Definition at line 217 of file ExifRotationTest.php.
| ExifRotationTest::testMetadata | ( | $ | name, |
| $ | type, | ||
| $ | info | ||
| ) |
provideFiles
Definition at line 39 of file ExifRotationTest.php.
References $file, $name, BitmapHandler\canRotate(), and dataFile().
| ExifRotationTest::testMetadataNoAutoRotate | ( | $ | name, |
| $ | type, | ||
| $ | info | ||
| ) |
Same as before, but with auto-rotation disabled.
provideFilesNoAutoRotate
Definition at line 131 of file ExifRotationTest.php.
References $file, $name, dataFile(), and MediaWikiTestCase\setMwGlobals().
| ExifRotationTest::testRotationRendering | ( | $ | name, |
| $ | type, | ||
| $ | info, | ||
| $ | thumbs | ||
| ) |
provideFiles
Definition at line 52 of file ExifRotationTest.php.
References $file, $matches, $name, $out, $params, $size, array(), as, BitmapHandler\canRotate(), dataFile(), File\RENDER_FORCE, and File\RENDER_NOW.
| ExifRotationTest::testRotationRenderingNoAutoRotate | ( | $ | name, |
| $ | type, | ||
| $ | info, | ||
| $ | thumbs | ||
| ) |
provideFilesNoAutoRotate
Definition at line 143 of file ExifRotationTest.php.
References $file, $matches, $name, $out, $params, $size, array(), as, dataFile(), File\RENDER_FORCE, File\RENDER_NOW, and MediaWikiTestCase\setMwGlobals().
| const ExifRotationTest::TEST_HEIGHT = 200 |
Definition at line 212 of file ExifRotationTest.php.
| const ExifRotationTest::TEST_WIDTH = 100 |
Definition at line 211 of file ExifRotationTest.php.