Start on test cases for bug 6672 (Exif orientation support), follow up to r79845.
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 13 Jun 2011 22:13:38 +0000 (22:13 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 13 Jun 2011 22:13:38 +0000 (22:13 +0000)
commitb1f5c819429001d23c61d8b1f8c00ae077254748
tree1a4cdc5c58e473870d2252c66cf3764e1c2e498f
parent0101367c6fba2c7d40aec454077ea24552f0bbc7
Start on test cases for bug 6672 (Exif orientation support), follow up to r79845.

Unfortunately seem to be hitting a wall right off at checking width & height; BitmapHandler reports back the pre-rotation width & height, leading to the oddity that a file that's clearly 1024px tall and 768px wide reports itself as 1024px wide and 768px tall.
Haven't gotten to generating rotated output to confirm file size. :)

Marked test case as broken pending fix so it doesn't add to surprise regressions in test reports.
tests/phpunit/includes/media/ExifRotationTest.php [new file with mode: 0644]
tests/phpunit/includes/media/landscape-plain.jpg [new file with mode: 0644]
tests/phpunit/includes/media/portrait-rotated.jpg [new file with mode: 0644]