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 927b986795
commit 1fa03c3ad8

View file

@ -65,7 +65,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($WebGUI::Test::logger_error, q/Can't find a thumbnail for a file named 'round
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