Add an explicit test for getThumbnailUrl and non-image files (like a PDF)

This commit is contained in:
Colin Kuskie 2010-09-14 09:15:32 -07:00
parent 4f632b27fc
commit 35412fbead

View file

@ -63,7 +63,7 @@ my $extensionTests = [
},
];
plan tests => 54 + scalar @{ $extensionTests }; # increment this value for each test you create
plan tests => 55 + scalar @{ $extensionTests }; # increment this value for each test you create
my $session = WebGUI::Test->session;
@ -210,6 +210,8 @@ is($log_data->{error}, q/Can't find a thumbnail for a file named 'round.png' tha
is($thumbStore->getThumbnailUrl('square.png'), $thumbStore->getUrl('thumb-square.png'), 'getThumbnailUrl returns the correct url');
is($thumbStore->getThumbnailUrl('file.pdf'), '', '... return empty string for a file that is not an image');
####################################################
#
# adjustMaxImageSize