summaryrefslogtreecommitdiffstats
path: root/tests/driver_flash_test.php
diff options
context:
space:
mode:
authorKore Nordmann <github@kore-nordmann.de>2007-02-08 11:11:42 +0000
committerKore Nordmann <github@kore-nordmann.de>2007-02-08 11:11:42 +0000
commitb8f51740e26dee3f8fdd937dcaac7f0d437fe785 (patch)
tree9026ecfae7b979a1ee6d1554521d2e33e783c108 /tests/driver_flash_test.php
parent47c7a25d15c25ae051af381046b8257e9b2a9a46 (diff)
downloadzetacomponents-graph-b8f51740e26dee3f8fdd937dcaac7f0d437fe785.zip
zetacomponents-graph-b8f51740e26dee3f8fdd937dcaac7f0d437fe785.tar.gz
- Implemented ellipse size reducement in flash driver
Diffstat (limited to 'tests/driver_flash_test.php')
-rw-r--r--tests/driver_flash_test.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/driver_flash_test.php b/tests/driver_flash_test.php
index 036e04e..802cf3a 100644
--- a/tests/driver_flash_test.php
+++ b/tests/driver_flash_test.php
@@ -210,6 +210,43 @@ class ezcGraphFlashDriverTest extends ezcGraphTestCase
);
}
+ public function testDrawCircleSectorBorderReducement()
+ {
+ $filename = $this->tempDir . __FUNCTION__ . '.swf';
+
+ $angles = array( 10, 25, 45, 90, 125, 180, 235, 340 );
+
+ $position = 0;
+ $radius = 80;
+ foreach ( $angles as $angle )
+ {
+ while ( $position < 360 )
+ {
+ $this->driver->drawCircleSector(
+ new ezcGraphCoordinate( 100, 50 ),
+ $radius,
+ $radius / 2,
+ $position,
+ $position += $angle,
+ ezcGraphColor::fromHex( '#3465A480' ),
+ false
+ );
+
+ $position += 5;
+ }
+
+ $position = 0;
+ $radius += 15;
+ }
+
+ $this->driver->render( $filename );
+
+ $this->swfCompare(
+ $filename,
+ $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.swf'
+ );
+ }
+
public function testDrawMultipleBigCircleSectors()
{
$filename = $this->tempDir . __FUNCTION__ . '.swf';
OpenPOWER on IntegriCloud