[improve range tests ganesh@earth.li**20040426111930] { hunk ./test/test14 23 +group 1-5 foo hunk ./test/test14 25 +describe 2 foo hunk ./test/test14 35 +::makeimage 100x75 scratch/2.jpg hunk ./test/test14 40 +foo hunk ./test/test14 42 + +:{rangehtml range=/1-5 style=/down search=foo +foo hunk ./test/test14 46 +:} hunk ./test/test14 48 +::sleep 1 +:{write scratch/downwards.thtml + + +$description + +prev +:} + +:{init +:{rangehtml range=/1-5 style=/down page=2 +foo +prev +:} +:} + hunk ./test/test14 77 + +Photo /2 + hunk ./test/test14 83 +::sleep 1 +:{append scratch/photopubrc + + templatealias / + +:} + +:{write scratch/downwards.thtml +$styleroot +:} + +:{write scratch/across.thtml +$title +Range $range +:} + +:{init +:{rangehtml range=/1-5 style=/test/down +/test +:} + +:{rangehtml range=/1-5 style=/across album=/all +foo +:} + +:{rangehtml range=/2-4 style=/across album=/all +Range /2-4 +:} +:} + +::sleep 1 +:{write scratch/downwards.thtml + +$counter +$photo +$filesizek +$picid + + + +:} + +:{init +:{rangehtml range=/1-5 style=/down +1 +/1 +0 +/1 + +

+2 +/2 +0 +/2 + +

+:} +:} + +::sleep 1 +:{write scratch/info +describe 1 foo +describe 2 bar +describe 3 baz +describe 4 quux +describe 5 blat +:} + +::makeimage 100x75 scratch/3.jpg +::makeimage 100x75 scratch/4.jpg +::makeimage 100x75 scratch/5.jpg + +:{write scratch/downwards.thtml + +$photo +first +last +odd + +:} + +:{init +:{rangehtml range=/1-5 style=/down +/1 +first +odd +/2 +/3 +odd +/4 +/5 +last +odd +:} +:} + +::sleep 1 +:{write scratch/downwards.thtml + +[ + +$description + +] + +:} + +:{init +:{rangehtml range=/1-5 style=/down +[ +foo +bar +baz +] +[ +quux +blat +] +:} +:} + }