[more album tests ganesh@earth.li**20040421221935] hunk ./test/test13 63 +:{init +:{albumhtml album=/all style=/standard search=bar +bar +:} +:} + +::sleep 1 +:{write scratch/album.thtml +$albumtitle +Album $album +:} + + + +:{init +:{albumhtml album=/all style=/standard +Album /all +:} +:} + + +::sleep 1 +:{write scratch/photopubrc + + dir scratch + suffix .jpg + + + dir scratch + filename info + makealbum all + + + standard scratch/album.thtml + + + title The whole lot + style /standard + +:} + +:{init +:{albumhtml album=/all +The whole lot +:} +:} + +:{write scratch/album.thtml + + +$description + + +:} + +:{init +:{albumhtml album=/all +bar +foo +:} +:} + +# Errors + +::sleep 1 +:{write scratch/photopubrc + + dir scratch + suffix .jpg + + + dir scratch + filename info + makealbum all + + + standard scratch/album.thtml + +:} + +:{init +:{albumhtml album=/none style=/standard +:!userinput That album (/none) contains no entries - perhaps you specified an incorrect album? +:} +:} + +::sleep 1 +::run rm scratch/album.thtml + +:{init +:{albumhtml album=/all style=/foo +:!userinput Album style /foo not defined +:} +:} + +:{init +:{albumhtml album=/all style=/standard +:!config Couldn't stat $basedir/scratch/album.thtml +:} +:} + +:{init +:{albumhtml album=/all +:!userinput style not given and no default defined +:} +:} + + + +:{init +:{albumhtml style=/standard +:!userinput album not given and no default defined +:} +:} + +