mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
- add truecolortopallete and istruecolor test
- titles for colorclosest/resolve...
This commit is contained in:
parent
439eaf24d6
commit
49f0d6b8c2
@ -2,7 +2,7 @@
|
||||
imageclosest
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!function_exists('imageclosest')) die("skip gd extension not available\n");
|
||||
if (!function_exists('imagecolorclosest')) die("skip gd extension not available\n");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
@ -2,7 +2,7 @@
|
||||
imagecolorresolve
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!function_exists('imageresolve')) die("skip gd extension not available\n");
|
||||
if (!function_exists('imagecolorresolve')) die("skip gd extension not available\n");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
19
ext/gd/tests/truecolor.phpt
Normal file
19
ext/gd/tests/truecolor.phpt
Normal file
@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
imageistruecolor, truecolortopalette
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!function_exists('imagetruecolortopalette')) die("skip gd extension not available\n");
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$im = imagecreatetruecolor(1,1);
|
||||
if (imageistruecolor($im)) echo "ok\n";
|
||||
|
||||
if (imagetruecolortopalette($im, 1,2)) echo "ok\n";
|
||||
if (!imageistruecolor($im)) echo "ok\n";
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
ok
|
||||
ok
|
||||
ok
|
Loading…
Reference in New Issue
Block a user