Gallery resolutions are integers. Fixed sorting the resolutions, and fixed the tests to not use bad resolutions. Fixes bug #11787

This commit is contained in:
Colin Kuskie 2010-08-17 11:16:58 -07:00
parent 09ff64334e
commit eac7fe8a64
6 changed files with 15 additions and 14 deletions

View file

@ -30,7 +30,7 @@ $versionTag->set({name=>"Photo Test"});
my $gallery
= $node->addChild({
className => "WebGUI::Asset::Wobject::Gallery",
imageResolutions => "1024x768",
imageResolutions => "1024",
});
my $album
= $gallery->addChild({
@ -62,7 +62,7 @@ $photo->setFile( WebGUI::Test->getTestCollateralPath('page_title.jpg') );
my $storage = $photo->getStorageLocation;
cmp_deeply(
$storage->getFiles, bag('page_title.jpg','1024x768.jpg'),
$storage->getFiles, bag('page_title.jpg','1024.jpg'),
"Storage location contains the resolution file",
);