From 5314448e55da76bf33edeebc0c17c0866ce2c879 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 30 May 2019 02:11:23 +0000 Subject: Various new tests and corrections git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3621 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/pnmcrop1.ok | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 test/pnmcrop1.ok (limited to 'test/pnmcrop1.ok') diff --git a/test/pnmcrop1.ok b/test/pnmcrop1.ok new file mode 100644 index 00000000..09714bc7 --- /dev/null +++ b/test/pnmcrop1.ok @@ -0,0 +1,109 @@ +Test 1 +test.pbm + +0 0 -7 0 28 25 rgb-1:1/1/1 0.000000 +-white +0 0 -7 0 28 25 rgb-1:1/1/1 0.000000 +-black +0 0 0 -2 28 30 rgb-1:0/0/0 0.000000 +-sides +0 0 -7 0 28 25 rgb-1:1/1/1 0.000000 +-top +0 0 -7 0 28 25 rgb-1:1/1/1 0.000000 +-bottom +0 0 0 0 28 32 rgb-1:1/1/1 0.000000 +-left +0 0 0 0 28 32 rgb-1:1/1/1 0.000000 +-right +0 0 0 0 28 32 rgb-1:1/1/1 0.000000 +-top -bottom +0 0 -7 0 28 25 rgb-1:1/1/1 0.000000 +-bottom -bg-corner=bottomright +0 0 0 -2 28 30 rgb-1:0/0/0 0.000000 +-right -bg-corner=bottomright +0 0 0 0 28 32 rgb-1:0/0/0 0.000000 +-bg-color=white +0 0 0 0 28 32 rgb-1:1/1/1 0.000000 +-bg-color=black +0 0 0 -2 28 30 rgb-1:0/0/0 0.000000 +-bg-color=red +0 0 0 0 28 32 rgb-1:0/0/0 0.000000 +test.ppm + +0 0 0 0 250 161 rgb-255:127/127/127 0.000000 +-white +-6 0 0 0 244 161 rgb-255:255/255/255 0.000000 +-black +0 -11 0 0 239 161 rgb-255:0/0/0 0.000000 +-sides +-6 0 0 0 244 161 rgb-255:255/255/255 0.000000 +-top +0 0 0 0 250 161 rgb-255:127/127/127 0.000000 +-bottom +0 0 0 0 250 161 rgb-255:127/127/127 0.000000 +-left +0 0 0 0 250 161 rgb-255:127/127/127 0.000000 +-right +0 0 0 0 250 161 rgb-255:127/127/127 0.000000 +-top -bottom +0 0 0 0 250 161 rgb-255:127/127/127 0.000000 +-bottom -bg-corner=bottomright +0 0 0 0 250 161 rgb-255:0/0/0 0.000000 +-right -bg-corner=bottomright +0 -11 0 0 239 161 rgb-255:0/0/0 0.000000 +-bg-color=white +-6 0 0 0 244 161 rgb-255:255/255/255 0.000000 +-bg-color=black +0 -11 0 0 239 161 rgb-255:0/0/0 0.000000 +-bg-color=red +0 0 0 0 250 161 rgb-255:255/0/0 0.000000 +Test 2 +test.pbm + +3130931737 109 +3130931737 109 +-white +3130931737 109 +3130931737 109 +-top +3130931737 109 +3130931737 109 +test.ppm + +1435955776 120765 +1435955776 120765 +-white +638507845 117867 +638507845 117867 +-top +1435955776 120765 +1435955776 120765 +Test 3 +-reportfull -reportsize +expected failure +-reportfull -borderfile=testgrid.pbm +expected failure +-reportsize -borderfile=testgrid.pbm +expected failure +-black -white +expected failure +-black -sides +expected failure +-white -bg-color=red +expected failure +-white -bg-corner=topleft +expected failure +-white -bg-corner=top +expected failure +-bg-color=black -bg-color=white +expected failure +-bg-corner=topleft -bg-corner=bottomright +expected failure +-blank-image=maxcrop +-1 0 0 -1 13 15 rgb-1:0/0/0 0.000000 +-blank-image=past +expected failure +-bg-color=black -closeness=-1 +expected failure +-bg-color=black -closeness=101 +expected failure -- cgit 1.4.1