pike.git / src / modules / Image / testsuite.in

version» Context lines:

pike.git/src/modules/Image/testsuite.in:1: - dnl $Id: testsuite.in,v 1.16 2003/03/21 13:33:09 jhs Exp $ + dnl $Id: testsuite.in,v 1.17 2004/03/20 12:57:41 grubba Exp $      test_eq([[ Image.PNM.decode("P1\n5 5\n0 1 1 1 1\n1 0 1 1 1\n"    "1 1 0 1 1\n1 1 1 0 1\n1 1 1 1 0") ]],   Image.PNM.decode("P4\n5 5\nx¸Øèð") )      test_eq([[ Image.GIF.decode(MIME.decode_base64(    "R0lGODlhBQAFAIAAAAAAAP///ywAAAAABQAFAAACCAxwEWrY8BwoADs=")) ]],   Image.PNM.decode("P4\n5 5\nx\00èØèð") )      test_true( objectp(Image.Image()) )
pike.git/src/modules/Image/testsuite.in:402:   test_coltab([[    test_do([[    add_constant("c", Image.Colortable(32,32,32)->ordered())    ]])    test_true( img-(c*img)<32 )    test_do( add_constant("c") )   ]])         define(test_encoding,[[ -  cond( master()->resolv("Image.$1")->encode,[[ +  cond( (master()->resolv("Image.$1")||([]))->encode,[[    test_any([[    object img=Image.Image(100,100)->test(40);    $2    object img1=Image.$1.decode(Image.$1.encode(img$3));    return img==img1;    ]],1)    ]])   ]])      test_encoding(AVS,,)
pike.git/src/modules/Image/testsuite.in:475:   test_any([[    object img=Image.Image(256,240)->test(43);    img=Image.Colortable( ({"white","black","red","green"}) )*img;    return Image.HRZ.decode(Image.HRZ.encode(img))==img;   ]],1)      test_encoding(ILBM,[[    img=Image.Colortable(img,16)*img;   ]],)    - cond( master()->resolv("Image.JPEG")->encode,[[ + cond( (master()->resolv("Image.JPEG")||([]))->encode,[[    test_any([[    object img=Image.Image(100,100)->test(43);    object img1=Image.JPEG.decode(Image.JPEG.encode(img,(["quality":100])));    return img-img1<10;    ]],1)   ]])      test_encoding(PCX,,)   test_encoding(PNG,,)   test_encoding(PNM,,)
pike.git/src/modules/Image/testsuite.in:502:   dnl ]],)   dnl test_encoding(WBMP,[[   dnl object c=Image.Colortable(({Image.Color.white,Image.Color.black}));   dnl img=c*img;   dnl ]],)   test_encoding(XBM,[[    object c=Image.Colortable(({Image.Color.white,Image.Color.black}));    img=c*img;   ]],)    - cond( master()->resolv("Image.XFace")->encode,[[ + cond( (master()->resolv("Image.XFace")||([]))->encode,[[    test_any([[    object img=Image.Image(48,48)->test(43);    object c=Image.Colortable(({Image.Color.white,Image.Color.black}));    c->floyd_steinberg();    img=c*img;    return Image.XFace.decode(Image.XFace.encode(img))==img;    ]],1)   ]])      test_encoding(XPM,[[    object c=Image.Colortable(16,16,16);    img=c*img;   ]],[[,(["colortable":c]) ]])   test_encoding(TIFF,,)