[embed HTML test harness + basic test ganesh@earth.li**20040415092934] { hunk ./test/harness.pl 48 +use PhotoPub::Embed qw(&embedhtml); hunk ./test/harness.pl 161 + } elsif($command eq 'embedhtml') { + &testhtml(name => 'embed', sub => \&embedhtml, + args => $data->{'args'}, data => $data->{'script'}); hunk ./test/regression 4 -::call test12 test13 test14 +::call test12 test13 test14 test15 addfile ./test/test15 hunk ./test/test15 1 - +# Embed HTML +::run test ! -d scratch +::run mkdir scratch + +::sleep 1 +:{write scratch/photopubrc + + dir scratch + suffix .jpg + + + dir scratch + filename info + makealbum all + + + standard scratch/embed.thtml + +:} + +:{write scratch/info +group 1-5 foo +describe 1 bar +:} + +:{write scratch/embed.thtml + +$rangetitle - $description + +:} + +::makeimage 100x75 scratch/1.jpg + +:{init +:{embedhtml photo=/1 style=/standard album=/all +foo - bar +Photo /1 +:} +:} + +::run rm scratch/* +::run rmdir scratch }