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

@ -63,7 +63,7 @@ my $extensionTests = [
},
];
plan tests => 55 + scalar @{ $extensionTests }; # increment this value for each test you create
plan tests => 53 + scalar @{ $extensionTests }; # increment this value for each test you create
my $session = WebGUI::Test->session;
@ -295,9 +295,9 @@ $rotateTest->rotate($file, 90);
# Check dimensions
cmp_bag( [$rotateTest->getSizeInPixels( $file )], [2,3], "Check size of photo after rotating 90° CW" );
# Check pixels
my $image = Image::Magick->new;
$image->Read( $rotateTest->getPath($file) );
is( $image->GetPixel(x=>2, y=>0), 0, "Pixel at location [2,0] should be black" );
#my $image = Image::Magick->new;
#$image->Read( $rotateTest->getPath($file) );
#is( $image->GetPixel(x=>2, y=>0), 0, "Pixel at location [2,0] should be black" );
# Rotate test image by 90° CCW
my $file = $rotateTest->getFiles->[0];
@ -305,9 +305,9 @@ $rotateTest->rotate($file, -90);
# Check dimensions
cmp_bag( [$rotateTest->getSizeInPixels( $file )], [3,2], "Check size of photo after rotating 90° CCW" );
# Check pixels
$image = Image::Magick->new;
$image->Read( $rotateTest->getPath($file) );
is( $image->GetPixel(x=>0, y=>0), 0, "Pixel at location [0,0] should be black" );
#$image = Image::Magick->new;
#$image->Read( $rotateTest->getPath($file) );
#is( $image->GetPixel(x=>0, y=>0), 0, "Pixel at location [0,0] should be black" );