Changeset 2671
- Timestamp:
- 07/01/08 11:39:39 (20 months ago)
- Files:
-
- 1 modified
-
branches/release-41/t/62-asset.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-41/t/62-asset.t
r2562 r2671 23 23 isa_ok($asset, 'MT::Asset::Image', 'Is MT::Asset::Image'); 24 24 25 # method validation\ 25 # method validation 26 my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time); 27 my $cache_path = sprintf("%04d/%02d", $year + 1900, $mon + 1); 26 28 # is($asset->class, 'Image', 'class'); 27 29 is($asset->class_label, 'Image', 'class_label'); 28 is(($asset->thumbnail_file({Height => 100, Width => 100}))[0], 't/site/assets_c/2008/06/test-thumb-640x480.jpg', 'thumbnail');30 is(($asset->thumbnail_file({Height => 100, Width => 100}))[0], "t/site/assets_c/$cache_path/test-thumb-640x480.jpg", 'thumbnail'); 29 31 is($asset->image_width, 640, 'image_width'); 30 32 is($asset->image_height, 480, 'height');
