diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2009-03-25 12:20:34 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2009-03-25 12:20:34 +0000 |
commit | a8d8d0ea093567c17a0dad8cc0a0e2e1b246d752 (patch) | |
tree | fa8f053bb03f4fcec2927e24ccd902a57231d94e /tests/driver_gd_test.php | |
parent | 04b1e75ef1940831624f318a8a614f81366840ae (diff) | |
download | zetacomponents-graph-a8d8d0ea093567c17a0dad8cc0a0e2e1b246d752.zip zetacomponents-graph-a8d8d0ea093567c17a0dad8cc0a0e2e1b246d752.tar.gz |
- Fixed #14655: A full circle sector is not drawn at all in GD driver.
Diffstat (limited to 'tests/driver_gd_test.php')
-rw-r--r-- | tests/driver_gd_test.php | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/tests/driver_gd_test.php b/tests/driver_gd_test.php index 3a0d868..038837a 100644 --- a/tests/driver_gd_test.php +++ b/tests/driver_gd_test.php @@ -58,7 +58,7 @@ class ezcGraphGdDriverTest extends ezcTestImageCase unset( $this->driver ); if ( !$this->hasFailed() ) { - $this->removeTempDir(); + // $this->removeTempDir(); } } @@ -424,6 +424,35 @@ class ezcGraphGdDriverTest extends ezcTestImageCase ); } + public function testDrawFullCircleSectorBug14655() + { + $filename = $this->tempDir . __FUNCTION__ . '.png'; + + // Draw filled cicle sector at ( 240.00, 95.00 ) with dimensions ( 144, 76 ) from 0.00 to 360.00. + $return = $this->driver->drawCircleSector( + new ezcGraphCoordinate( 100, 50 ), + 80, + 40, + 0., + 360., + ezcGraphColor::fromHex( '#3465A4' ) + ); + + $this->driver->render( $filename ); + + $this->assertTrue( + file_exists( $filename ), + 'No image was generated.' + ); + + $this->assertImageSimilar( + $filename, + $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.png', + 'Image does not look as expected.', + 2000 + ); + } + public function testDrawCircleSectorAcuteNonFilled() { $filename = $this->tempDir . __FUNCTION__ . '.png'; |