Commit graph

13 commits

Author SHA1 Message Date
Colin Kuskie
ad661f2a70 Rewrite the adjustMaxFilesize test to be data driven.
Check the original sizes, and resized sizes exactly.
Hoping that this fixes last night's Image.t test failure.
2007-12-02 04:01:07 +00:00
Colin Kuskie
241bb7ebac Storage/Image.t tests failing due to being run as root user. Add SKIP to enable test for non-users only 2007-11-30 16:26:22 +00:00
Colin Kuskie
1b3d7f0c2b Refactor out the copied code to resize images based on the max file
size from the Admin Settings and create a new method in
Storage::Image.
Build a test to verify that it works correctly.
2007-11-24 05:30:15 +00:00
Colin Kuskie
226dd2cf21 Add tests for WebGUI::Storage::Image, and give its getThumbnailUrl method
some error handling.
2007-07-24 03:40:57 +00:00
Colin Kuskie
86d92d68a8 add deleteFile tests to Image.t 2007-07-23 18:14:40 +00:00
Colin Kuskie
a83702f2ed Fix a bug where WebGUI::Storage::Image->copy does not return
an object of the same class, when no default object is passed.
Added a bunch of tests.
2007-07-23 04:53:09 +00:00
Colin Kuskie
02abc68aa8 more generateThumbnail tests 2007-07-16 22:22:21 +00:00
Colin Kuskie
f07858a645 tests for generateThumbnail. final test is not working yet 2007-07-13 04:52:38 +00:00
Colin Kuskie
8b973604cd beginnings of thumbnail generation test 2007-07-13 04:38:50 +00:00
Colin Kuskie
6fe068e42d document what other tests need to be written 2007-07-08 21:06:00 +00:00
Colin Kuskie
e04443c6ee Add tests for dealing with files beginning with thumb- (they're ignored)
and determining if a file is an image, based on the filename.
2007-07-07 21:33:52 +00:00
Colin Kuskie
83310ba311 update copyright on tests 2007-07-07 03:56:44 +00:00
Colin Kuskie
c07b0b9c72 Add the Storage::Image test. This really, really wants to be done with
Test::Class in the long term.
Fixed a bug where Storage::Image's getFiles does not obey the showAll switch
that its parent has.
2007-07-07 03:38:16 +00:00