MediaWiki
REL1_24
|
Tests related to auto rotation. More...
Public Member Functions | |
testBitmapExtractPreRotationDimensions ($rotation, $expected) | |
provideBitmapExtractPreRotationDimensions | |
testMetadata ($name, $type, $info) | |
provideFiles | |
testMetadataAutoRotate ($name, $type, $info) | |
Same as before, but with auto-rotation set to auto. | |
testMetadataAutoRotateUnsupported ($name, $type, $info) | |
Same as before, but with auto-rotation set to auto and an image scaler that doesn't support it. | |
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 | |
createsThumbnails () | |
Mark this test as creating thumbnail files. | |
setUp () |
Tests related to auto rotation.
Media medium
Definition at line 10 of file ExifRotationTest.php.
ExifRotationTest::createsThumbnails | ( | ) | [protected] |
Mark this test as creating thumbnail files.
Reimplemented from MediaWikiMediaTestCase.
Definition at line 27 of file ExifRotationTest.php.
static ExifRotationTest::provideBitmapExtractPreRotationDimensions | ( | ) | [static] |
Definition at line 260 of file ExifRotationTest.php.
References array().
static ExifRotationTest::provideFiles | ( | ) | [static] |
Definition at line 108 of file ExifRotationTest.php.
References array().
static ExifRotationTest::provideFilesNoAutoRotate | ( | ) | [static] |
Definition at line 213 of file ExifRotationTest.php.
References array().
ExifRotationTest::setUp | ( | ) | [protected] |
Reimplemented from MediaWikiMediaTestCase.
Definition at line 12 of file ExifRotationTest.php.
References array(), MediaWikiTestCase\checkPHPExtension(), and MediaWikiTestCase\setMwGlobals().
ExifRotationTest::testBitmapExtractPreRotationDimensions | ( | $ | rotation, |
$ | expected | ||
) |
provideBitmapExtractPreRotationDimensions
Definition at line 252 of file ExifRotationTest.php.
ExifRotationTest::testMetadata | ( | $ | name, |
$ | type, | ||
$ | info | ||
) |
provideFiles
Definition at line 34 of file ExifRotationTest.php.
References $file, $name, $type, and MediaWikiMediaTestCase\dataFile().
ExifRotationTest::testMetadataAutoRotate | ( | $ | name, |
$ | type, | ||
$ | info | ||
) |
Same as before, but with auto-rotation set to auto.
This sets scaler to image magick, which we should detect as supporting rotation. provideFiles
Definition at line 50 of file ExifRotationTest.php.
References $file, $name, $type, MediaWikiMediaTestCase\dataFile(), and MediaWikiTestCase\setMwGlobals().
ExifRotationTest::testMetadataAutoRotateUnsupported | ( | $ | name, |
$ | type, | ||
$ | info | ||
) |
Same as before, but with auto-rotation set to auto and an image scaler that doesn't support it.
provideFilesNoAutoRotate
Definition at line 157 of file ExifRotationTest.php.
References $file, $name, $type, MediaWikiMediaTestCase\dataFile(), and MediaWikiTestCase\setMwGlobals().
ExifRotationTest::testMetadataNoAutoRotate | ( | $ | name, |
$ | type, | ||
$ | info | ||
) |
Same as before, but with auto-rotation disabled.
provideFilesNoAutoRotate
Definition at line 145 of file ExifRotationTest.php.
References $file, $name, $type, MediaWikiMediaTestCase\dataFile(), and MediaWikiTestCase\setMwGlobals().
ExifRotationTest::testRotationRendering | ( | $ | name, |
$ | type, | ||
$ | info, | ||
$ | thumbs | ||
) |
provideFiles
Definition at line 64 of file ExifRotationTest.php.
References $file, $matches, $name, $out, $params, $size, $type, array(), as, MediaWikiMediaTestCase\dataFile(), File\RENDER_FORCE, and File\RENDER_NOW.
ExifRotationTest::testRotationRenderingNoAutoRotate | ( | $ | name, |
$ | type, | ||
$ | info, | ||
$ | thumbs | ||
) |
provideFilesNoAutoRotate
Definition at line 170 of file ExifRotationTest.php.
References $file, $matches, $name, $out, $params, $size, $type, array(), as, MediaWikiMediaTestCase\dataFile(), File\RENDER_FORCE, File\RENDER_NOW, and MediaWikiTestCase\setMwGlobals().
const ExifRotationTest::TEST_HEIGHT = 200 |
Definition at line 247 of file ExifRotationTest.php.
const ExifRotationTest::TEST_WIDTH = 100 |
Definition at line 246 of file ExifRotationTest.php.