i'm not testing that imagemagick does it correctly...
This commit is contained in:
parent
0693e33128
commit
6b0cd93e61
2 changed files with 14 additions and 14 deletions
14
t/Storage.t
14
t/Storage.t
|
|
@ -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)");
|
||||
|
||||
####################################################
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue