summaryrefslogtreecommitdiffstats
path: root/tests
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
parent47c7a25d15c25ae051af381046b8257e9b2a9a46 (diff)
downloadzetacomponents-graph-b8f51740e26dee3f8fdd937dcaac7f0d437fe785.zip
zetacomponents-graph-b8f51740e26dee3f8fdd937dcaac7f0d437fe785.tar.gz
- Implemented ellipse size reducement in flash driver
Diffstat (limited to 'tests')
-rw-r--r--tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcuteNonFilled.swfbin128 -> 122 bytes
-rw-r--r--tests/data/compare/ezcGraphFlashDriverTest_testRenderLabeledFlashPieChart.swfbin49051 -> 49047 bytes
-rw-r--r--tests/driver_flash_test.php37
3 files changed, 37 insertions, 0 deletions
diff --git a/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcuteNonFilled.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcuteNonFilled.swf
index e981e92..b4dabab 100644
--- a/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcuteNonFilled.swf
+++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcuteNonFilled.swf
Binary files differ
diff --git a/tests/data/compare/ezcGraphFlashDriverTest_testRenderLabeledFlashPieChart.swf b/tests/data/compare/ezcGraphFlashDriverTest_testRenderLabeledFlashPieChart.swf
index ee4e958..fd1d4d0 100644
--- a/tests/data/compare/ezcGraphFlashDriverTest_testRenderLabeledFlashPieChart.swf
+++ b/tests/data/compare/ezcGraphFlashDriverTest_testRenderLabeledFlashPieChart.swf
Binary files differ
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