i'm not testing that imagemagick does it correctly...

This commit is contained in:
Doug Bell 2011-05-05 20:01:03 -05:00
parent 0693e33128
commit 6b0cd93e61
2 changed files with 14 additions and 14 deletions

View file

@ -29,7 +29,7 @@ my $cwd = Cwd::cwd();
my ($extensionTests, $fileIconTests, $block_extension_tests) = setupDataDrivenTests($session);
plan tests => 141
plan tests => 139
+ scalar @{ $extensionTests }
+ scalar @{ $fileIconTests }
+ scalar @{ $block_extension_tests }
@ -586,9 +586,9 @@ $rotateTestStorage->rotate( $file, 90 );
# Test based on dimensions
cmp_deeply( [ $rotateTestStorage->getSizeInPixels($file) ], [ 3, 2 ], "rotate: check if image was rotated by 90° CW (based on dimensions)" );
# Test based on single pixel
my $image = new Image::Magick;
$image->Read( $rotateTestStorage->getPath( $file ) );
is( $image->GetPixel( x=>3, y=>1 ), 1, "rotate: check if image was rotated by 90° CW (based on pixels)");
#my $image = new Image::Magick;
#$image->Read( $rotateTestStorage->getPath( $file ) );
#is( $image->GetPixel( x=>3, y=>1 ), 1, "rotate: check if image was rotated by 90° CW (based on pixels)");
# Rotate image by 90° CCW
$rotateTestStorage->rotate( $file, -90 );
@ -596,9 +596,9 @@ $rotateTestStorage->rotate( $file, -90 );
# Test based on dimensions
cmp_deeply( [ $rotateTestStorage->getSizeInPixels($file) ], [ 2, 3 ], "rotate: check if image was rotated by 90° CCW (based on dimensions)" );
# Test based on single pixel
my $image = new Image::Magick;
$image->Read( $rotateTestStorage->getPath( $file ) );
is( $image->GetPixel( x=>1, y=>1 ), 1, "rotate: check if image was rotated by 90° CCW (based on pixels)");
#my $image = new Image::Magick;
#$image->Read( $rotateTestStorage->getPath( $file ) );
#is( $image->GetPixel( x=>1, y=>1 ), 1, "rotate: check if image was rotated by 90° CCW (based on pixels)");
####################################################
#