Annotation of embedaddon/php/ext/gd/tests/bug42434.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #42434 (ImageLine w/ antialias = 1px shorter)
                      3: --SKIPIF--
                      4: <?php
                      5: if (!extension_loaded('gd')) {
                      6:        die('skip gd extension not available');
                      7: }
                      8: if (!GD_BUNDLED) die("skip requires bundled GD library\n");
                      9: ?>
                     10: --FILE--
                     11: <?php
                     12: $im = imagecreatetruecolor(10, 2);
                     13: imagefilledrectangle($im, 0, 0, 10, 2, 0xFFFFFF);
                     14: 
                     15: imageantialias($im, true);
                     16: imageline($im, 0, 0, 10, 0, 0x000000);
                     17: 
                     18: if (imagecolorat($im, 9, 0) == 0x000000) {
                     19:        echo 'DONE';
                     20: } else {
                     21:        echo 'Bugged';
                     22: }
                     23: 
                     24: imagedestroy($im);
                     25: ?>
                     26: --EXPECTF--
                     27: DONE

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>