MediaWiki  REL1_24
ExifRotationTest Class Reference

Tests related to auto rotation. More...

Inheritance diagram for ExifRotationTest:
Collaboration diagram for ExifRotationTest:

List of all members.

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 ()

Detailed Description

Tests related to auto rotation.

Media medium

Todo:
covers tags

Definition at line 10 of file ExifRotationTest.php.


Member Function Documentation

Mark this test as creating thumbnail files.

Reimplemented from MediaWikiMediaTestCase.

Definition at line 27 of file ExifRotationTest.php.

Definition at line 260 of file ExifRotationTest.php.

References array().

static ExifRotationTest::provideFiles ( ) [static]

Definition at line 108 of file ExifRotationTest.php.

References array().

Definition at line 213 of file ExifRotationTest.php.

References array().

provideBitmapExtractPreRotationDimensions

Definition at line 252 of file ExifRotationTest.php.

References $result, and array().

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 
)

Member Data Documentation

Definition at line 247 of file ExifRotationTest.php.

Definition at line 246 of file ExifRotationTest.php.


The documentation for this class was generated from the following file: