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

version» Context lines:

pike.git/src/modules/Image/testsuite.in:821:    dnl FIXME: Test that alpha is actually encoded    dnl FIXME: Test "palette" attribute    test_eval_error( Image.PNG.encode(Image.Image(5,5), (["zlevel":"x"])) )    test_true( Image.PNG.encode(Image.Image(5,5), (["zlevel":0])) )    test_true( Image.PNG.encode(Image.Image(5,5), (["zlevel":9])) )    test_true( Image.PNG.encode(Image.Image(5,5), (["zstrategy":Gz.DEFAULT_STRATEGY])) )    test_true( Image.PNG.encode(Image.Image(5,5), (["zstrategy":Gz.FILTERED])) )    test_true( Image.PNG.encode(Image.Image(5,5), (["zstrategy":Gz.HUFFMAN_ONLY])) )   ]])    + cond_resolv( Image.PSD.decode, [[ +  test_true( arrayp(Image.decode_layers(Stdio.read_bytes("SRCDIR/corner2.psd"), +  ([ "crop_to_bounds":1 ]))) ) + ]]) +    dnl ACK! cond_resolv does not nest. But if Gz.RLE or Gz.FIXED exists, it   dnl means the Gz module is there, and in that case Image.PNG should be too...   cond_resolv( Gz.RLE, [[    test_true( Image.PNG.encode(Image.Image(5,5), (["zstrategy":Gz.RLE])) )   ]])   cond_resolv( Gz.FIXED, [[    test_true( Image.PNG.encode(Image.Image(5,5), (["zstrategy":Gz.FIXED])) )   ]])      cond( (master()->resolv("Image.XFace")||([]))->encode,[[